//---------------------- // // Generated using the NSwag toolchain v13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org) // //---------------------- #pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended." #pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword." #pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?' #pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ... #pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..." #pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'" #pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant" #pragma warning disable 8603 // Disable "CS8603 Possible null reference return" namespace PLS.Integrations.IFSClient { using System = global::System; [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHandlingClient { private string _baseUrl = "test.com/main/ifsapplications/projection/v1/CustomerHandling.svc"; private System.Net.Http.HttpClient _httpClient; private System.Lazy _settings; public CustomerHandlingClient(System.Net.Http.HttpClient httpClient) { _httpClient = httpClient; _settings = new System.Lazy(CreateSerializerSettings); } private System.Text.Json.JsonSerializerOptions CreateSerializerSettings() { var settings = new System.Text.Json.JsonSerializerOptions(); UpdateJsonSerializerSettings(settings); return settings; } public string BaseUrl { get { return _baseUrl; } set { _baseUrl = value; } } protected System.Text.Json.JsonSerializerOptions JsonSerializerSettings { get { return _settings.Value; } } partial void UpdateJsonSerializerSettings(System.Text.Json.JsonSerializerOptions settings); partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); /// /// Get entities from Reference_AssociationInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssociationInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssociationInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceAssociationInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_AssociationInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssociationInfo /// A server side error occurred. public virtual Response ReferenceAssociationInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssociationInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_AssociationInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssociationInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssociationInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssociationInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_AssociationInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssociationNo /// response body for entity type AssociationInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssociationInfo(AssociationNo= '')Async(System.Collections.Generic.IEnumerable select, string associationNo) { return ReferenceAssociationInfo(AssociationNo = '')Async(select, associationNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_AssociationInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssociationNo /// response body for entity type AssociationInfo /// A server side error occurred. public virtual AssociationInfo ReferenceAssociationInfo(AssociationNo= '')(System.Collections.Generic.IEnumerable select, string associationNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssociationInfo(AssociationNo= '')Async(select, associationNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_AssociationInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssociationNo /// response body for entity type AssociationInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssociationInfo(AssociationNo= '')Async(System.Collections.Generic.IEnumerable select, string associationNo, System.Threading.CancellationToken cancellationToken) { if (associationNo == null) throw new System.ArgumentNullException("associationNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssociationInfo(AssociationNo='{AssociationNo}')?"); urlBuilder_.Replace("{AssociationNo}", System.Uri.EscapeDataString(ConvertToString(associationNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoAddressPublic /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressPublic /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddressPublicAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerInfoAddressPublicAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoAddressPublic /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressPublic /// A server side error occurred. public virtual Response4 ReferenceCustomerInfoAddressPublic(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddressPublicAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoAddressPublic /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressPublic /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddressPublicAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddressPublic?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoAddressPublic by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddressPublic /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddressPublic(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return ReferenceCustomerInfoAddressPublic(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoAddressPublic by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddressPublic /// A server side error occurred. public virtual CustomerInfoAddressPublic ReferenceCustomerInfoAddressPublic(CustomerId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddressPublic(CustomerId= '', AddressId= '')Async(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoAddressPublic by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddressPublic /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddressPublic(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous6 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddressPublic(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoAddrDelPubLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddrDelPubLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoAddrDelPubLovAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoAddrDelPubLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual Response5 ReferenceCustomerInfoAddrDelPubLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddrDelPubLovAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoAddrDelPubLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddrDelPubLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddrDelPubLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoAddrDelPubLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddrDelPubLov(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous10 > select, string customerId, string addressId) { return ReferenceCustomerInfoAddrDelPubLov(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoAddrDelPubLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual CustomerInfoAddrDelPubLov ReferenceCustomerInfoAddrDelPubLov(CustomerId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddrDelPubLov(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoAddrDelPubLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddrDelPubLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddrDelPubLov(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous10 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddrDelPubLov(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PersonInfoAddress1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAddress1 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfoAddress1Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePersonInfoAddress1Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PersonInfoAddress1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAddress1 /// A server side error occurred. public virtual Response6 ReferencePersonInfoAddress1(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfoAddress1Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PersonInfoAddress1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAddress1 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfoAddress1Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfoAddress1?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PersonInfoAddress1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// key: AddressId /// response body for entity type PersonInfoAddress1 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfoAddress1(PersonId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous13 > select, string personId, string addressId) { return ReferencePersonInfoAddress1(PersonId = '', AddressId = '')Async(select, personId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PersonInfoAddress1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// key: AddressId /// response body for entity type PersonInfoAddress1 /// A server side error occurred. public virtual PersonInfoAddress1 ReferencePersonInfoAddress1(PersonId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string personId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfoAddress1(PersonId = '', AddressId = '')Async(select, personId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PersonInfoAddress1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// key: AddressId /// response body for entity type PersonInfoAddress1 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfoAddress1(PersonId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous13 > select, string personId, string addressId, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfoAddress1(PersonId='{PersonId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PersonInfoAll /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAll /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfoAllAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePersonInfoAllAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PersonInfoAll /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAll /// A server side error occurred. public virtual Response7 ReferencePersonInfoAll(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfoAllAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PersonInfoAll /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfoAll /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfoAllAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfoAll?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PersonInfoAll by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfoAll /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfoAll(PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous16 > select, string personId) { return ReferencePersonInfoAll(PersonId = '')Async(select, personId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PersonInfoAll by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfoAll /// A server side error occurred. public virtual PersonInfoAll ReferencePersonInfoAll(PersonId= '')(System.Collections.Generic.IEnumerable select, string personId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfoAll(PersonId = '')Async(select, personId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PersonInfoAll by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfoAll /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfoAll(PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous16 > select, string personId, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfoAll(PersonId='{PersonId}')?"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ContactRoleDbLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ContactRoleDbLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceContactRoleDbLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceContactRoleDbLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ContactRoleDbLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ContactRoleDbLov /// A server side error occurred. public virtual Response8 ReferenceContactRoleDbLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceContactRoleDbLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ContactRoleDbLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ContactRoleDbLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceContactRoleDbLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ContactRoleDbLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ContactRoleDbLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RoleDb /// response body for entity type ContactRoleDbLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceContactRoleDbLov(RoleDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous19 > select, string roleDb) { return ReferenceContactRoleDbLov(RoleDb = '')Async(select, roleDb, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ContactRoleDbLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RoleDb /// response body for entity type ContactRoleDbLov /// A server side error occurred. public virtual ContactRoleDbLov ReferenceContactRoleDbLov(RoleDb= '')(System.Collections.Generic.IEnumerable select, string roleDb) { return System.Threading.Tasks.Task.Run(async () => await ReferenceContactRoleDbLov(RoleDb = '')Async(select, roleDb, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ContactRoleDbLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RoleDb /// response body for entity type ContactRoleDbLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceContactRoleDbLov(RoleDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous19 > select, string roleDb, System.Threading.CancellationToken cancellationToken) { if (roleDb == null) throw new System.ArgumentNullException("roleDb"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ContactRoleDbLov(RoleDb='{RoleDb}')?"); urlBuilder_.Replace("{RoleDb}", System.Uri.EscapeDataString(ConvertToString(roleDb, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PartyTypeAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePartyTypeAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PartyTypeAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeAddress /// A server side error occurred. public virtual Response9 ReferencePartyTypeAddress(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PartyTypeAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeAddress?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PartyTypeAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: AddressId /// response body for entity type PartyTypeAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeAddress(PartyType= '', Identity= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous22 > select, string partyType, string identity, string addressId) { return ReferencePartyTypeAddress(PartyType = '', Identity = '', AddressId = '')Async(select, partyType, identity, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PartyTypeAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: AddressId /// response body for entity type PartyTypeAddress /// A server side error occurred. public virtual PartyTypeAddress ReferencePartyTypeAddress(PartyType= '', Identity= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string partyType, string identity, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeAddress(PartyType = '', Identity = '', AddressId = '')Async(select, partyType, identity, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PartyTypeAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: AddressId /// response body for entity type PartyTypeAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeAddress(PartyType= '', Identity= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous22 > select, string partyType, string identity, string addressId, System.Threading.CancellationToken cancellationToken) { if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identity == null) throw new System.ArgumentNullException("identity"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeAddress(PartyType='{PartyType}',Identity='{Identity}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTemplateLov /// A server side error occurred. public virtual Response10 ReferenceCustomerTemplateLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTemplateLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustomerTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTemplateLov(TemplateCustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous25 > select, string templateCustomerId) { return ReferenceCustomerTemplateLov(TemplateCustomerId = '')Async(select, templateCustomerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustomerTemplateLov /// A server side error occurred. public virtual CustomerTemplateLov ReferenceCustomerTemplateLov(TemplateCustomerId= '')(System.Collections.Generic.IEnumerable select, string templateCustomerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTemplateLov(TemplateCustomerId = '')Async(select, templateCustomerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustomerTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTemplateLov(TemplateCustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous25 > select, string templateCustomerId, System.Threading.CancellationToken cancellationToken) { if (templateCustomerId == null) throw new System.ArgumentNullException("templateCustomerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTemplateLov(TemplateCustomerId='{TemplateCustomerId}')?"); urlBuilder_.Replace("{TemplateCustomerId}", System.Uri.EscapeDataString(ConvertToString(templateCustomerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustProspectTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustProspectTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustProspectTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustProspectTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustProspectTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustProspectTemplateLov /// A server side error occurred. public virtual Response11 ReferenceCustProspectTemplateLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustProspectTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustProspectTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustProspectTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustProspectTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustProspectTemplateLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustProspectTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustProspectTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustProspectTemplateLov(TemplateCustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous28 > select, string templateCustomerId) { return ReferenceCustProspectTemplateLov(TemplateCustomerId = '')Async(select, templateCustomerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustProspectTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustProspectTemplateLov /// A server side error occurred. public virtual CustProspectTemplateLov ReferenceCustProspectTemplateLov(TemplateCustomerId= '')(System.Collections.Generic.IEnumerable select, string templateCustomerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustProspectTemplateLov(TemplateCustomerId = '')Async(select, templateCustomerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustProspectTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateCustomerId /// response body for entity type CustProspectTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustProspectTemplateLov(TemplateCustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous28 > select, string templateCustomerId, System.Threading.CancellationToken cancellationToken) { if (templateCustomerId == null) throw new System.ArgumentNullException("templateCustomerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustProspectTemplateLov(TemplateCustomerId='{TemplateCustomerId}')?"); urlBuilder_.Replace("{TemplateCustomerId}", System.Uri.EscapeDataString(ConvertToString(templateCustomerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxLiabilityLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxLiabilityLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxLiabilityLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxLiabilityLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxLiabilityLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxLiabilityLov /// A server side error occurred. public virtual Response12 ReferenceTaxLiabilityLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxLiabilityLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxLiabilityLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxLiabilityLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxLiabilityLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxLiabilityLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxLiabilityLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxLiability /// response body for entity type TaxLiabilityLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxLiabilityLov(TaxLiability= '')Async(System.Collections.Generic.IEnumerable < Anonymous31 > select, string taxLiability) { return ReferenceTaxLiabilityLov(TaxLiability = '')Async(select, taxLiability, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxLiabilityLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxLiability /// response body for entity type TaxLiabilityLov /// A server side error occurred. public virtual TaxLiabilityLov ReferenceTaxLiabilityLov(TaxLiability= '')(System.Collections.Generic.IEnumerable select, string taxLiability) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxLiabilityLov(TaxLiability = '')Async(select, taxLiability, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxLiabilityLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxLiability /// response body for entity type TaxLiabilityLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxLiabilityLov(TaxLiability= '')Async(System.Collections.Generic.IEnumerable < Anonymous31 > select, string taxLiability, System.Threading.CancellationToken cancellationToken) { if (taxLiability == null) throw new System.ArgumentNullException("taxLiability"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxLiabilityLov(TaxLiability='{TaxLiability}')?"); urlBuilder_.Replace("{TaxLiability}", System.Uri.EscapeDataString(ConvertToString(taxLiability, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxBookLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxBookLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxBookLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxBookLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxBookLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxBookLov /// A server side error occurred. public virtual Response13 ReferenceTaxBookLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxBookLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxBookLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxBookLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxBookLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxBookLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxBookLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objid /// response body for entity type TaxBookLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxBookLov(Objid= '')Async(System.Collections.Generic.IEnumerable < Anonymous34 > select, string objid) { return ReferenceTaxBookLov(Objid = '')Async(select, objid, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxBookLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objid /// response body for entity type TaxBookLov /// A server side error occurred. public virtual TaxBookLov ReferenceTaxBookLov(Objid= '')(System.Collections.Generic.IEnumerable select, string objid) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxBookLov(Objid = '')Async(select, objid, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxBookLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objid /// response body for entity type TaxBookLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxBookLov(Objid= '')Async(System.Collections.Generic.IEnumerable < Anonymous34 > select, string objid, System.Threading.CancellationToken cancellationToken) { if (objid == null) throw new System.ArgumentNullException("objid"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxBookLov(Objid='{Objid}')?"); urlBuilder_.Replace("{Objid}", System.Uri.EscapeDataString(ConvertToString(objid, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxCalcStructureActive /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCalcStructureActive /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCalcStructureActiveAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxCalcStructureActiveAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxCalcStructureActive /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCalcStructureActive /// A server side error occurred. public virtual Response14 ReferenceTaxCalcStructureActive(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCalcStructureActiveAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxCalcStructureActive /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCalcStructureActive /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCalcStructureActiveAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCalcStructureActive?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxCalcStructureActive by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TaxCalcStructureId /// response body for entity type TaxCalcStructureActive /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCalcStructureActive(Company= '', TaxCalcStructureId= '')Async(System.Collections.Generic.IEnumerable < Anonymous37 > select, string company, string taxCalcStructureId) { return ReferenceTaxCalcStructureActive(Company = '', TaxCalcStructureId = '')Async(select, company, taxCalcStructureId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxCalcStructureActive by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TaxCalcStructureId /// response body for entity type TaxCalcStructureActive /// A server side error occurred. public virtual TaxCalcStructureActive ReferenceTaxCalcStructureActive(Company= '', TaxCalcStructureId= '')(System.Collections.Generic.IEnumerable select, string company, string taxCalcStructureId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCalcStructureActive(Company = '', TaxCalcStructureId = '')Async(select, company, taxCalcStructureId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxCalcStructureActive by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TaxCalcStructureId /// response body for entity type TaxCalcStructureActive /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCalcStructureActive(Company= '', TaxCalcStructureId= '')Async(System.Collections.Generic.IEnumerable < Anonymous37 > select, string company, string taxCalcStructureId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (taxCalcStructureId == null) throw new System.ArgumentNullException("taxCalcStructureId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCalcStructureActive(Company='{Company}',TaxCalcStructureId='{TaxCalcStructureId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TaxCalcStructureId}", System.Uri.EscapeDataString(ConvertToString(taxCalcStructureId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxCodeRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeRestricted /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCodeRestrictedAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxCodeRestrictedAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxCodeRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeRestricted /// A server side error occurred. public virtual Response15 ReferenceTaxCodeRestricted(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCodeRestrictedAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxCodeRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeRestricted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCodeRestrictedAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCodeRestricted?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxCodeRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeRestricted /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCodeRestricted(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous40 > select, string company, string feeCode) { return ReferenceTaxCodeRestricted(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxCodeRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeRestricted /// A server side error occurred. public virtual TaxCodeRestricted ReferenceTaxCodeRestricted(Company= '', FeeCode= '')(System.Collections.Generic.IEnumerable select, string company, string feeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCodeRestricted(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxCodeRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeRestricted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCodeRestricted(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous40 > select, string company, string feeCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (feeCode == null) throw new System.ArgumentNullException("feeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCodeRestricted(Company='{Company}',FeeCode='{FeeCode}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{FeeCode}", System.Uri.EscapeDataString(ConvertToString(feeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxCodeExemptRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeExemptRestricted /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCodeExemptRestrictedAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxCodeExemptRestrictedAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxCodeExemptRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeExemptRestricted /// A server side error occurred. public virtual Response16 ReferenceTaxCodeExemptRestricted(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCodeExemptRestrictedAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxCodeExemptRestricted /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxCodeExemptRestricted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCodeExemptRestrictedAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCodeExemptRestricted?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxCodeExemptRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeExemptRestricted /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxCodeExemptRestricted(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous43 > select, string company, string feeCode) { return ReferenceTaxCodeExemptRestricted(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxCodeExemptRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeExemptRestricted /// A server side error occurred. public virtual TaxCodeExemptRestricted ReferenceTaxCodeExemptRestricted(Company= '', FeeCode= '')(System.Collections.Generic.IEnumerable select, string company, string feeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxCodeExemptRestricted(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxCodeExemptRestricted by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type TaxCodeExemptRestricted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxCodeExemptRestricted(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous43 > select, string company, string feeCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (feeCode == null) throw new System.ArgumentNullException("feeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxCodeExemptRestricted(Company='{Company}',FeeCode='{FeeCode}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{FeeCode}", System.Uri.EscapeDataString(ConvertToString(feeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_DeliveryTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryTypeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeliveryTypeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceDeliveryTypeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_DeliveryTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryTypeLov /// A server side error occurred. public virtual Response17 ReferenceDeliveryTypeLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeliveryTypeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_DeliveryTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryTypeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeliveryTypeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeliveryTypeLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_DeliveryTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DelivTypeId /// response body for entity type DeliveryTypeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeliveryTypeLov(Company= '', DelivTypeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous46 > select, string company, string delivTypeId) { return ReferenceDeliveryTypeLov(Company = '', DelivTypeId = '')Async(select, company, delivTypeId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_DeliveryTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DelivTypeId /// response body for entity type DeliveryTypeLov /// A server side error occurred. public virtual DeliveryTypeLov ReferenceDeliveryTypeLov(Company= '', DelivTypeId= '')(System.Collections.Generic.IEnumerable select, string company, string delivTypeId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeliveryTypeLov(Company = '', DelivTypeId = '')Async(select, company, delivTypeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_DeliveryTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DelivTypeId /// response body for entity type DeliveryTypeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeliveryTypeLov(Company= '', DelivTypeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous46 > select, string company, string delivTypeId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (delivTypeId == null) throw new System.ArgumentNullException("delivTypeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeliveryTypeLov(Company='{Company}',DelivTypeId='{DelivTypeId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{DelivTypeId}", System.Uri.EscapeDataString(ConvertToString(delivTypeId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CompanyInvoiceInfo2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo2 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo2Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCompanyInvoiceInfo2Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CompanyInvoiceInfo2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo2 /// A server side error occurred. public virtual Response18 ReferenceCompanyInvoiceInfo2(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyInvoiceInfo2Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CompanyInvoiceInfo2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo2 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo2Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyInvoiceInfo2?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CompanyInvoiceInfo2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo2 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo2(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous49 > select, string company) { return ReferenceCompanyInvoiceInfo2(Company = '')Async(select, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CompanyInvoiceInfo2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo2 /// A server side error occurred. public virtual CompanyInvoiceInfo2 ReferenceCompanyInvoiceInfo2(Company= '')(System.Collections.Generic.IEnumerable select, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyInvoiceInfo2(Company = '')Async(select, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CompanyInvoiceInfo2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo2 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo2(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous49 > select, string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyInvoiceInfo2(Company='{Company}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InactiveReasonLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InactiveReasonLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInactiveReasonLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInactiveReasonLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InactiveReasonLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InactiveReasonLov /// A server side error occurred. public virtual Response19 ReferenceInactiveReasonLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInactiveReasonLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InactiveReasonLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InactiveReasonLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInactiveReasonLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InactiveReasonLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InactiveReasonLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InactiveReasonId /// response body for entity type InactiveReasonLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInactiveReasonLov(Company= '', InactiveReasonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous52 > select, string company, string inactiveReasonId) { return ReferenceInactiveReasonLov(Company = '', InactiveReasonId = '')Async(select, company, inactiveReasonId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InactiveReasonLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InactiveReasonId /// response body for entity type InactiveReasonLov /// A server side error occurred. public virtual InactiveReasonLov ReferenceInactiveReasonLov(Company= '', InactiveReasonId= '')(System.Collections.Generic.IEnumerable select, string company, string inactiveReasonId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInactiveReasonLov(Company = '', InactiveReasonId = '')Async(select, company, inactiveReasonId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InactiveReasonLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InactiveReasonId /// response body for entity type InactiveReasonLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInactiveReasonLov(Company= '', InactiveReasonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous52 > select, string company, string inactiveReasonId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (inactiveReasonId == null) throw new System.ArgumentNullException("inactiveReasonId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InactiveReasonLov(Company='{Company}',InactiveReasonId='{InactiveReasonId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{InactiveReasonId}", System.Uri.EscapeDataString(ConvertToString(inactiveReasonId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PersonsPerCustomerLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonsPerCustomerLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonsPerCustomerLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePersonsPerCustomerLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PersonsPerCustomerLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonsPerCustomerLov /// A server side error occurred. public virtual Response20 ReferencePersonsPerCustomerLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonsPerCustomerLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PersonsPerCustomerLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonsPerCustomerLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonsPerCustomerLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonsPerCustomerLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PersonsPerCustomerLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// response body for entity type PersonsPerCustomerLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonsPerCustomerLov(CustomerId= '', PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous55 > select, string customerId, string personId) { return ReferencePersonsPerCustomerLov(CustomerId = '', PersonId = '')Async(select, customerId, personId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PersonsPerCustomerLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// response body for entity type PersonsPerCustomerLov /// A server side error occurred. public virtual PersonsPerCustomerLov ReferencePersonsPerCustomerLov(CustomerId= '', PersonId= '')(System.Collections.Generic.IEnumerable select, string customerId, string personId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonsPerCustomerLov(CustomerId = '', PersonId = '')Async(select, customerId, personId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PersonsPerCustomerLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// response body for entity type PersonsPerCustomerLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonsPerCustomerLov(CustomerId= '', PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous55 > select, string customerId, string personId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (personId == null) throw new System.ArgumentNullException("personId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonsPerCustomerLov(CustomerId='{CustomerId}',PersonId='{PersonId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PaymentWayLov2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayLov2Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePaymentWayLov2Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PaymentWayLov2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2 /// A server side error occurred. public virtual Response21 ReferencePaymentWayLov2(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayLov2Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PaymentWayLov2 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayLov2Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayLov2?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PaymentWayLov2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayLov2(Company= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous58 > select, string company, string partyType, string wayId) { return ReferencePaymentWayLov2(Company = '', PartyType = '', WayId = '')Async(select, company, partyType, wayId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PaymentWayLov2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2 /// A server side error occurred. public virtual PaymentWayLov2 ReferencePaymentWayLov2(Company= '', PartyType= '', WayId= '')(System.Collections.Generic.IEnumerable select, string company, string partyType, string wayId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayLov2(Company = '', PartyType = '', WayId = '')Async(select, company, partyType, wayId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PaymentWayLov2 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayLov2(Company= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous58 > select, string company, string partyType, string wayId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (wayId == null) throw new System.ArgumentNullException("wayId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayLov2(Company='{Company}',PartyType='{PartyType}',WayId='{WayId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{WayId}", System.Uri.EscapeDataString(ConvertToString(wayId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PaymentWayLov2Cu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2Cu /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayLov2CuAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePaymentWayLov2CuAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PaymentWayLov2Cu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2Cu /// A server side error occurred. public virtual Response22 ReferencePaymentWayLov2Cu(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayLov2CuAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PaymentWayLov2Cu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentWayLov2Cu /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayLov2CuAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayLov2Cu?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PaymentWayLov2Cu by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2Cu /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayLov2Cu(Company= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous61 > select, string company, string partyType, string wayId) { return ReferencePaymentWayLov2Cu(Company = '', PartyType = '', WayId = '')Async(select, company, partyType, wayId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PaymentWayLov2Cu by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2Cu /// A server side error occurred. public virtual PaymentWayLov2Cu ReferencePaymentWayLov2Cu(Company= '', PartyType= '', WayId= '')(System.Collections.Generic.IEnumerable select, string company, string partyType, string wayId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayLov2Cu(Company = '', PartyType = '', WayId = '')Async(select, company, partyType, wayId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PaymentWayLov2Cu by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: WayId /// response body for entity type PaymentWayLov2Cu /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayLov2Cu(Company= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous61 > select, string company, string partyType, string wayId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (wayId == null) throw new System.ArgumentNullException("wayId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayLov2Cu(Company='{Company}',PartyType='{PartyType}',WayId='{WayId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{WayId}", System.Uri.EscapeDataString(ConvertToString(wayId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_IdentityPayInfoCust /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IdentityPayInfoCust /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityPayInfoCustAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceIdentityPayInfoCustAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_IdentityPayInfoCust /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IdentityPayInfoCust /// A server side error occurred. public virtual Response23 ReferenceIdentityPayInfoCust(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityPayInfoCustAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_IdentityPayInfoCust /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IdentityPayInfoCust /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityPayInfoCustAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityPayInfoCust?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_IdentityPayInfoCust by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type IdentityPayInfoCust /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityPayInfoCust(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous64 > select, string company, string identity) { return ReferenceIdentityPayInfoCust(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_IdentityPayInfoCust by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type IdentityPayInfoCust /// A server side error occurred. public virtual IdentityPayInfoCust ReferenceIdentityPayInfoCust(Company= '', Identity= '')(System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityPayInfoCust(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_IdentityPayInfoCust by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type IdentityPayInfoCust /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityPayInfoCust(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous64 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityPayInfoCust(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InterestTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InterestTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInterestTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInterestTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InterestTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InterestTemplateLov /// A server side error occurred. public virtual Response24 ReferenceInterestTemplateLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInterestTemplateLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InterestTemplateLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InterestTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInterestTemplateLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InterestTemplateLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InterestTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type InterestTemplateLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInterestTemplateLov(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous67 > select, string company, string templateId) { return ReferenceInterestTemplateLov(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InterestTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type InterestTemplateLov /// A server side error occurred. public virtual InterestTemplateLov ReferenceInterestTemplateLov(Company= '', TemplateId= '')(System.Collections.Generic.IEnumerable select, string company, string templateId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInterestTemplateLov(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InterestTemplateLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type InterestTemplateLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInterestTemplateLov(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous67 > select, string company, string templateId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (templateId == null) throw new System.ArgumentNullException("templateId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InterestTemplateLov(Company='{Company}',TemplateId='{TemplateId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TemplateId}", System.Uri.EscapeDataString(ConvertToString(templateId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerCreditInfoNochild /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditInfoNochild /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditInfoNochildAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerCreditInfoNochildAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerCreditInfoNochild /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditInfoNochild /// A server side error occurred. public virtual Response25 ReferenceCustomerCreditInfoNochild(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditInfoNochildAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerCreditInfoNochild /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditInfoNochild /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditInfoNochildAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditInfoNochild?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerCreditInfoNochild by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfoNochild /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditInfoNochild(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous70 > select, string company, string identity) { return ReferenceCustomerCreditInfoNochild(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerCreditInfoNochild by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfoNochild /// A server side error occurred. public virtual CustomerCreditInfoNochild ReferenceCustomerCreditInfoNochild(Company= '', Identity= '')(System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditInfoNochild(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerCreditInfoNochild by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfoNochild /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditInfoNochild(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous70 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditInfoNochild(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerCreditNorelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditNorelation /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditNorelationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerCreditNorelationAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerCreditNorelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditNorelation /// A server side error occurred. public virtual Response26 ReferenceCustomerCreditNorelation(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditNorelationAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerCreditNorelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerCreditNorelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditNorelationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditNorelation?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerCreditNorelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditNorelation /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditNorelation(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous73 > select, string company, string identity) { return ReferenceCustomerCreditNorelation(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerCreditNorelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditNorelation /// A server side error occurred. public virtual CustomerCreditNorelation ReferenceCustomerCreditNorelation(Company= '', Identity= '')(System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditNorelation(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerCreditNorelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditNorelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditNorelation(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous73 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditNorelation(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_RepresentativeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceRepresentativeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceRepresentativeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_RepresentativeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual Response27 ReferenceRepresentativeLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceRepresentativeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_RepresentativeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceRepresentativeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_RepresentativeLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_RepresentativeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RepresentativeId /// response body for entity type RepresentativeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceRepresentativeLov(RepresentativeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous76 > select, string representativeId) { return ReferenceRepresentativeLov(RepresentativeId = '')Async(select, representativeId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_RepresentativeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RepresentativeId /// response body for entity type RepresentativeLov /// A server side error occurred. public virtual RepresentativeLov ReferenceRepresentativeLov(RepresentativeId= '')(System.Collections.Generic.IEnumerable select, string representativeId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceRepresentativeLov(RepresentativeId = '')Async(select, representativeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_RepresentativeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RepresentativeId /// response body for entity type RepresentativeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceRepresentativeLov(RepresentativeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous76 > select, string representativeId, System.Threading.CancellationToken cancellationToken) { if (representativeId == null) throw new System.ArgumentNullException("representativeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_RepresentativeLov(RepresentativeId='{RepresentativeId}')?"); urlBuilder_.Replace("{RepresentativeId}", System.Uri.EscapeDataString(ConvertToString(representativeId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CrmCustInfoAndLeadLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCustInfoAndLeadLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCrmCustInfoAndLeadLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CrmCustInfoAndLeadLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual Response28 ReferenceCrmCustInfoAndLeadLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCustInfoAndLeadLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CrmCustInfoAndLeadLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCustInfoAndLeadLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCustInfoAndLeadLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CrmCustInfoAndLeadLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CategoryDb /// response body for entity type CrmCustInfoAndLeadLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCustInfoAndLeadLov(CustomerId= '', CategoryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous79 > select, string customerId, string categoryDb) { return ReferenceCrmCustInfoAndLeadLov(CustomerId = '', CategoryDb = '')Async(select, customerId, categoryDb, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CrmCustInfoAndLeadLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CategoryDb /// response body for entity type CrmCustInfoAndLeadLov /// A server side error occurred. public virtual CrmCustInfoAndLeadLov ReferenceCrmCustInfoAndLeadLov(CustomerId= '', CategoryDb= '')(System.Collections.Generic.IEnumerable select, string customerId, string categoryDb) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCustInfoAndLeadLov(CustomerId = '', CategoryDb = '')Async(select, customerId, categoryDb, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CrmCustInfoAndLeadLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CategoryDb /// response body for entity type CrmCustInfoAndLeadLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCustInfoAndLeadLov(CustomerId= '', CategoryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous79 > select, string customerId, string categoryDb, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (categoryDb == null) throw new System.ArgumentNullException("categoryDb"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCustInfoAndLeadLov(CustomerId='{CustomerId}',CategoryDb='{CategoryDb}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CategoryDb}", System.Uri.EscapeDataString(ConvertToString(categoryDb, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_OrderDeliveryTermLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderDeliveryTermLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOrderDeliveryTermLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceOrderDeliveryTermLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_OrderDeliveryTermLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderDeliveryTermLov /// A server side error occurred. public virtual Response29 ReferenceOrderDeliveryTermLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOrderDeliveryTermLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_OrderDeliveryTermLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderDeliveryTermLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOrderDeliveryTermLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OrderDeliveryTermLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_OrderDeliveryTermLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DeliveryTerms /// response body for entity type OrderDeliveryTermLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOrderDeliveryTermLov(DeliveryTerms= '')Async(System.Collections.Generic.IEnumerable < Anonymous82 > select, string deliveryTerms) { return ReferenceOrderDeliveryTermLov(DeliveryTerms = '')Async(select, deliveryTerms, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_OrderDeliveryTermLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DeliveryTerms /// response body for entity type OrderDeliveryTermLov /// A server side error occurred. public virtual OrderDeliveryTermLov ReferenceOrderDeliveryTermLov(DeliveryTerms= '')(System.Collections.Generic.IEnumerable select, string deliveryTerms) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOrderDeliveryTermLov(DeliveryTerms = '')Async(select, deliveryTerms, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_OrderDeliveryTermLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DeliveryTerms /// response body for entity type OrderDeliveryTermLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOrderDeliveryTermLov(DeliveryTerms= '')Async(System.Collections.Generic.IEnumerable < Anonymous82 > select, string deliveryTerms, System.Threading.CancellationToken cancellationToken) { if (deliveryTerms == null) throw new System.ArgumentNullException("deliveryTerms"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OrderDeliveryTermLov(DeliveryTerms='{DeliveryTerms}')?"); urlBuilder_.Replace("{DeliveryTerms}", System.Uri.EscapeDataString(ConvertToString(deliveryTerms, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustInfoContactLovPub /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustInfoContactLovPubAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustInfoContactLovPubAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustInfoContactLovPub /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual Response30 ReferenceCustInfoContactLovPub(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustInfoContactLovPubAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustInfoContactLovPub /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustInfoContactLovPubAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustInfoContactLovPub?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustInfoContactLovPub by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: KeyAttribute /// response body for entity type CustInfoContactLovPub /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustInfoContactLovPub(KeyAttribute= '')Async(System.Collections.Generic.IEnumerable < Anonymous85 > select, string keyAttribute) { return ReferenceCustInfoContactLovPub(KeyAttribute = '')Async(select, keyAttribute, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustInfoContactLovPub by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: KeyAttribute /// response body for entity type CustInfoContactLovPub /// A server side error occurred. public virtual CustInfoContactLovPub ReferenceCustInfoContactLovPub(KeyAttribute= '')(System.Collections.Generic.IEnumerable select, string keyAttribute) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustInfoContactLovPub(KeyAttribute = '')Async(select, keyAttribute, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustInfoContactLovPub by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: KeyAttribute /// response body for entity type CustInfoContactLovPub /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustInfoContactLovPub(KeyAttribute= '')Async(System.Collections.Generic.IEnumerable < Anonymous85 > select, string keyAttribute, System.Threading.CancellationToken cancellationToken) { if (keyAttribute == null) throw new System.ArgumentNullException("keyAttribute"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustInfoContactLovPub(KeyAttribute='{KeyAttribute}')?"); urlBuilder_.Replace("{KeyAttribute}", System.Uri.EscapeDataString(ConvertToString(keyAttribute, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustOrdCust1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCust1Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustOrdCust1Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustOrdCust1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual Response31 ReferenceCustOrdCust1(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCust1Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustOrdCust1 /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCust1Async(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCust1?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustOrdCust1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// response body for entity type CustOrdCust1 /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCust1(CustomerNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous88 > select, string customerNo) { return ReferenceCustOrdCust1(CustomerNo = '')Async(select, customerNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustOrdCust1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// response body for entity type CustOrdCust1 /// A server side error occurred. public virtual CustOrdCust1 ReferenceCustOrdCust1(CustomerNo= '')(System.Collections.Generic.IEnumerable select, string customerNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCust1(CustomerNo = '')Async(select, customerNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustOrdCust1 by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// response body for entity type CustOrdCust1 /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCust1(CustomerNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous88 > select, string customerNo, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCust1(CustomerNo='{CustomerNo}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesPartSalesmanLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPartSalesmanLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesPartSalesmanLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesPartSalesmanLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual Response32 ReferenceSalesPartSalesmanLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPartSalesmanLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesPartSalesmanLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPartSalesmanLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPartSalesmanLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesPartSalesmanLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesmanCode /// response body for entity type SalesPartSalesmanLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPartSalesmanLov(SalesmanCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous91 > select, string salesmanCode) { return ReferenceSalesPartSalesmanLov(SalesmanCode = '')Async(select, salesmanCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesPartSalesmanLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesmanCode /// response body for entity type SalesPartSalesmanLov /// A server side error occurred. public virtual SalesPartSalesmanLov ReferenceSalesPartSalesmanLov(SalesmanCode= '')(System.Collections.Generic.IEnumerable select, string salesmanCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPartSalesmanLov(SalesmanCode = '')Async(select, salesmanCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesPartSalesmanLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesmanCode /// response body for entity type SalesPartSalesmanLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPartSalesmanLov(SalesmanCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous91 > select, string salesmanCode, System.Threading.CancellationToken cancellationToken) { if (salesmanCode == null) throw new System.ArgumentNullException("salesmanCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPartSalesmanLov(SalesmanCode='{SalesmanCode}')?"); urlBuilder_.Replace("{SalesmanCode}", System.Uri.EscapeDataString(ConvertToString(salesmanCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_EdiApprovalUserLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceEdiApprovalUserLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceEdiApprovalUserLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_EdiApprovalUserLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual Response33 ReferenceEdiApprovalUserLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceEdiApprovalUserLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_EdiApprovalUserLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceEdiApprovalUserLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_EdiApprovalUserLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_EdiApprovalUserLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type EdiApprovalUserLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceEdiApprovalUserLov(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous94 > select, string identity) { return ReferenceEdiApprovalUserLov(Identity = '')Async(select, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_EdiApprovalUserLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type EdiApprovalUserLov /// A server side error occurred. public virtual EdiApprovalUserLov ReferenceEdiApprovalUserLov(Identity= '')(System.Collections.Generic.IEnumerable select, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceEdiApprovalUserLov(Identity = '')Async(select, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_EdiApprovalUserLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type EdiApprovalUserLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceEdiApprovalUserLov(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous94 > select, string identity, System.Threading.CancellationToken cancellationToken) { if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_EdiApprovalUserLov(Identity='{Identity}')?"); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_OrderCoordinatorLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOrderCoordinatorLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceOrderCoordinatorLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_OrderCoordinatorLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual Response34 ReferenceOrderCoordinatorLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOrderCoordinatorLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_OrderCoordinatorLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOrderCoordinatorLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OrderCoordinatorLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_OrderCoordinatorLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AuthorizeCode /// response body for entity type OrderCoordinatorLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOrderCoordinatorLov(AuthorizeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous97 > select, string authorizeCode) { return ReferenceOrderCoordinatorLov(AuthorizeCode = '')Async(select, authorizeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_OrderCoordinatorLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AuthorizeCode /// response body for entity type OrderCoordinatorLov /// A server side error occurred. public virtual OrderCoordinatorLov ReferenceOrderCoordinatorLov(AuthorizeCode= '')(System.Collections.Generic.IEnumerable select, string authorizeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOrderCoordinatorLov(AuthorizeCode = '')Async(select, authorizeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_OrderCoordinatorLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AuthorizeCode /// response body for entity type OrderCoordinatorLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOrderCoordinatorLov(AuthorizeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous97 > select, string authorizeCode, System.Threading.CancellationToken cancellationToken) { if (authorizeCode == null) throw new System.ArgumentNullException("authorizeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OrderCoordinatorLov(AuthorizeCode='{AuthorizeCode}')?"); urlBuilder_.Replace("{AuthorizeCode}", System.Uri.EscapeDataString(ConvertToString(authorizeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_OutputTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OutputTypeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOutputTypeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceOutputTypeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_OutputTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OutputTypeLov /// A server side error occurred. public virtual Response35 ReferenceOutputTypeLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOutputTypeLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_OutputTypeLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array OutputTypeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOutputTypeLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OutputTypeLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_OutputTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// response body for entity type OutputTypeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceOutputTypeLov(OutputType= '')Async(System.Collections.Generic.IEnumerable < Anonymous100 > select, string outputType) { return ReferenceOutputTypeLov(OutputType = '')Async(select, outputType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_OutputTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// response body for entity type OutputTypeLov /// A server side error occurred. public virtual OutputTypeLov ReferenceOutputTypeLov(OutputType= '')(System.Collections.Generic.IEnumerable select, string outputType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceOutputTypeLov(OutputType = '')Async(select, outputType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_OutputTypeLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// response body for entity type OutputTypeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceOutputTypeLov(OutputType= '')Async(System.Collections.Generic.IEnumerable < Anonymous100 > select, string outputType, System.Threading.CancellationToken cancellationToken) { if (outputType == null) throw new System.ArgumentNullException("outputType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_OutputTypeLov(OutputType='{OutputType}')?"); urlBuilder_.Replace("{OutputType}", System.Uri.EscapeDataString(ConvertToString(outputType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MpccomPhraseTextLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomPhraseTextLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMpccomPhraseTextLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMpccomPhraseTextLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MpccomPhraseTextLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomPhraseTextLov /// A server side error occurred. public virtual Response36 ReferenceMpccomPhraseTextLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMpccomPhraseTextLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MpccomPhraseTextLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomPhraseTextLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMpccomPhraseTextLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MpccomPhraseTextLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MpccomPhraseTextLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PhraseText /// key: PhraseId /// key: LanguageCode /// key: RevisionNo /// response body for entity type MpccomPhraseTextLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMpccomPhraseTextLov(PhraseText= '', PhraseId= '', LanguageCode= '', RevisionNo=)Async(System.Collections.Generic.IEnumerable < Anonymous103 > select, string phraseText, string phraseId, string languageCode, double revisionNo) { return ReferenceMpccomPhraseTextLov(PhraseText = '', PhraseId = '', LanguageCode = '', RevisionNo =)Async(select, phraseText, phraseId, languageCode, revisionNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MpccomPhraseTextLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PhraseText /// key: PhraseId /// key: LanguageCode /// key: RevisionNo /// response body for entity type MpccomPhraseTextLov /// A server side error occurred. public virtual MpccomPhraseTextLov ReferenceMpccomPhraseTextLov(PhraseText= '', PhraseId= '', LanguageCode= '', RevisionNo=)(System.Collections.Generic.IEnumerable select, string phraseText, string phraseId, string languageCode, double revisionNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMpccomPhraseTextLov(PhraseText = '', PhraseId = '', LanguageCode = '', RevisionNo =)Async(select, phraseText, phraseId, languageCode, revisionNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MpccomPhraseTextLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PhraseText /// key: PhraseId /// key: LanguageCode /// key: RevisionNo /// response body for entity type MpccomPhraseTextLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMpccomPhraseTextLov(PhraseText= '', PhraseId= '', LanguageCode= '', RevisionNo=)Async(System.Collections.Generic.IEnumerable < Anonymous103 > select, string phraseText, string phraseId, string languageCode, double revisionNo, System.Threading.CancellationToken cancellationToken) { if (phraseText == null) throw new System.ArgumentNullException("phraseText"); if (phraseId == null) throw new System.ArgumentNullException("phraseId"); if (languageCode == null) throw new System.ArgumentNullException("languageCode"); if (revisionNo == null) throw new System.ArgumentNullException("revisionNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MpccomPhraseTextLov(PhraseText='{PhraseText}',PhraseId='{PhraseId}',LanguageCode='{LanguageCode}',RevisionNo={RevisionNo})?"); urlBuilder_.Replace("{PhraseText}", System.Uri.EscapeDataString(ConvertToString(phraseText, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PhraseId}", System.Uri.EscapeDataString(ConvertToString(phraseId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{LanguageCode}", System.Uri.EscapeDataString(ConvertToString(languageCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{RevisionNo}", System.Uri.EscapeDataString(ConvertToString(revisionNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_AssortmentClassificationLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssortmentClassificationLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceAssortmentClassificationLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_AssortmentClassificationLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual Response37 ReferenceAssortmentClassificationLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssortmentClassificationLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_AssortmentClassificationLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssortmentClassificationLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssortmentClassificationLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_AssortmentClassificationLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentClassificationLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssortmentClassificationLov(AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous106 > select, string assortmentId) { return ReferenceAssortmentClassificationLov(AssortmentId = '')Async(select, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_AssortmentClassificationLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentClassificationLov /// A server side error occurred. public virtual AssortmentClassificationLov ReferenceAssortmentClassificationLov(AssortmentId= '')(System.Collections.Generic.IEnumerable select, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssortmentClassificationLov(AssortmentId = '')Async(select, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_AssortmentClassificationLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentClassificationLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssortmentClassificationLov(AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous106 > select, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssortmentClassificationLov(AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_UserAllowedSiteLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array UserAllowedSiteLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceUserAllowedSiteLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceUserAllowedSiteLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_UserAllowedSiteLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array UserAllowedSiteLov /// A server side error occurred. public virtual Response38 ReferenceUserAllowedSiteLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceUserAllowedSiteLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_UserAllowedSiteLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array UserAllowedSiteLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceUserAllowedSiteLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_UserAllowedSiteLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_UserAllowedSiteLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type UserAllowedSiteLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceUserAllowedSiteLov(Contract= '')Async(System.Collections.Generic.IEnumerable < Anonymous109 > select, string contract) { return ReferenceUserAllowedSiteLov(Contract = '')Async(select, contract, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_UserAllowedSiteLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type UserAllowedSiteLov /// A server side error occurred. public virtual UserAllowedSiteLov ReferenceUserAllowedSiteLov(Contract= '')(System.Collections.Generic.IEnumerable select, string contract) { return System.Threading.Tasks.Task.Run(async () => await ReferenceUserAllowedSiteLov(Contract = '')Async(select, contract, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_UserAllowedSiteLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type UserAllowedSiteLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceUserAllowedSiteLov(Contract= '')Async(System.Collections.Generic.IEnumerable < Anonymous109 > select, string contract, System.Threading.CancellationToken cancellationToken) { if (contract == null) throw new System.ArgumentNullException("contract"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_UserAllowedSiteLov(Contract='{Contract}')?"); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesPriceListLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceListLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceListLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesPriceListLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesPriceListLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceListLov /// A server side error occurred. public virtual Response39 ReferenceSalesPriceListLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceListLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesPriceListLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceListLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceListLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceListLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesPriceListLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: OwningCompany /// key: PriceListNo /// response body for entity type SalesPriceListLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceListLov(SalesPriceGroupId= '', CurrencyCode= '', OwningCompany= '', PriceListNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous112 > select, string salesPriceGroupId, string currencyCode, string owningCompany, string priceListNo) { return ReferenceSalesPriceListLov(SalesPriceGroupId = '', CurrencyCode = '', OwningCompany = '', PriceListNo = '')Async(select, salesPriceGroupId, currencyCode, owningCompany, priceListNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesPriceListLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: OwningCompany /// key: PriceListNo /// response body for entity type SalesPriceListLov /// A server side error occurred. public virtual SalesPriceListLov ReferenceSalesPriceListLov(SalesPriceGroupId= '', CurrencyCode= '', OwningCompany= '', PriceListNo= '')(System.Collections.Generic.IEnumerable select, string salesPriceGroupId, string currencyCode, string owningCompany, string priceListNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceListLov(SalesPriceGroupId = '', CurrencyCode = '', OwningCompany = '', PriceListNo = '')Async(select, salesPriceGroupId, currencyCode, owningCompany, priceListNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesPriceListLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: OwningCompany /// key: PriceListNo /// response body for entity type SalesPriceListLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceListLov(SalesPriceGroupId= '', CurrencyCode= '', OwningCompany= '', PriceListNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous112 > select, string salesPriceGroupId, string currencyCode, string owningCompany, string priceListNo, System.Threading.CancellationToken cancellationToken) { if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); if (owningCompany == null) throw new System.ArgumentNullException("owningCompany"); if (priceListNo == null) throw new System.ArgumentNullException("priceListNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceListLov(SalesPriceGroupId='{SalesPriceGroupId}',CurrencyCode='{CurrencyCode}',OwningCompany='{OwningCompany}',PriceListNo='{PriceListNo}')?"); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{OwningCompany}", System.Uri.EscapeDataString(ConvertToString(owningCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PriceListNo}", System.Uri.EscapeDataString(ConvertToString(priceListNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PartyTypeCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeCustomerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePartyTypeCustomerAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PartyTypeCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual Response40 ReferencePartyTypeCustomer(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeCustomerAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PartyTypeCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeCustomerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeCustomer?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PartyTypeCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type PartyTypeCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeCustomer(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous115 > select, string identity) { return ReferencePartyTypeCustomer(Identity = '')Async(select, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PartyTypeCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type PartyTypeCustomer /// A server side error occurred. public virtual PartyTypeCustomer ReferencePartyTypeCustomer(Identity= '')(System.Collections.Generic.IEnumerable select, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeCustomer(Identity = '')Async(select, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PartyTypeCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type PartyTypeCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeCustomer(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous115 > select, string identity, System.Threading.CancellationToken cancellationToken) { if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeCustomer(Identity='{Identity}')?"); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_IsoCountryLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCountryLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIsoCountryLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceIsoCountryLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_IsoCountryLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCountryLov /// A server side error occurred. public virtual Response41 ReferenceIsoCountryLov(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIsoCountryLovAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_IsoCountryLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCountryLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIsoCountryLovAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IsoCountryLov?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_IsoCountryLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Description /// response body for entity type IsoCountryLov /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIsoCountryLov(Description= '')Async(System.Collections.Generic.IEnumerable < Anonymous118 > select, string description) { return ReferenceIsoCountryLov(Description = '')Async(select, description, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_IsoCountryLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Description /// response body for entity type IsoCountryLov /// A server side error occurred. public virtual IsoCountryLov ReferenceIsoCountryLov(Description= '')(System.Collections.Generic.IEnumerable select, string description) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIsoCountryLov(Description = '')Async(select, description, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_IsoCountryLov by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Description /// response body for entity type IsoCountryLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIsoCountryLov(Description= '')Async(System.Collections.Generic.IEnumerable < Anonymous118 > select, string description, System.Threading.CancellationToken cancellationToken) { if (description == null) throw new System.ArgumentNullException("description"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IsoCountryLov(Description='{Description}')?"); urlBuilder_.Replace("{Description}", System.Uri.EscapeDataString(ConvertToString(description, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_NotesInfoVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceNotesInfoVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceNotesInfoVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_NotesInfoVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual Response42 ReferenceNotesInfoVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceNotesInfoVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_NotesInfoVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceNotesInfoVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_NotesInfoVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_NotesInfoVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceNotesInfoVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous121 > select, string objkey) { return ReferenceNotesInfoVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_NotesInfoVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual NotesInfoVirtual ReferenceNotesInfoVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceNotesInfoVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_NotesInfoVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceNotesInfoVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous121 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_NotesInfoVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FinNotesVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFinNotesVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceFinNotesVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FinNotesVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual Response43 ReferenceFinNotesVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFinNotesVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FinNotesVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFinNotesVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FinNotesVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FinNotesVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFinNotesVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous124 > select, string objkey) { return ReferenceFinNotesVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FinNotesVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual FinNotesVirtual ReferenceFinNotesVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFinNotesVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FinNotesVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFinNotesVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous124 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FinNotesVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ParentCorporateRelationVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceParentCorporateRelationVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceParentCorporateRelationVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ParentCorporateRelationVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual Response44 ReferenceParentCorporateRelationVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceParentCorporateRelationVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ParentCorporateRelationVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceParentCorporateRelationVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ParentCorporateRelationVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ParentCorporateRelationVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceParentCorporateRelationVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous128 > select, string objkey) { return ReferenceParentCorporateRelationVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ParentCorporateRelationVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual ParentCorporateRelationVirtual ReferenceParentCorporateRelationVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceParentCorporateRelationVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ParentCorporateRelationVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceParentCorporateRelationVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous128 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ParentCorporateRelationVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_NoteTextVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceNoteTextVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceNoteTextVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_NoteTextVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual Response45 ReferenceNoteTextVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceNoteTextVirtualAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_NoteTextVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceNoteTextVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_NoteTextVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_NoteTextVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceNoteTextVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous131 > select, string objkey) { return ReferenceNoteTextVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_NoteTextVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual NoteTextVirtual ReferenceNoteTextVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceNoteTextVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_NoteTextVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceNoteTextVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous131 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_NoteTextVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ConectCustAssortmentVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConectCustAssortmentVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceConectCustAssortmentVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ConectCustAssortmentVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual Response46 ReferenceConectCustAssortmentVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConectCustAssortmentVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ConectCustAssortmentVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConectCustAssortmentVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConectCustAssortmentVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ConectCustAssortmentVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConectCustAssortmentVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous135 > select, string objkey) { return ReferenceConectCustAssortmentVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ConectCustAssortmentVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual ConectCustAssortmentVirtual ReferenceConectCustAssortmentVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConectCustAssortmentVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ConectCustAssortmentVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConectCustAssortmentVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous135 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConectCustAssortmentVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ConnectCustomerVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConnectCustomerVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceConnectCustomerVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ConnectCustomerVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual Response47 ReferenceConnectCustomerVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConnectCustomerVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ConnectCustomerVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConnectCustomerVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConnectCustomerVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ConnectCustomerVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConnectCustomerVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous139 > select, string objkey) { return ReferenceConnectCustomerVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ConnectCustomerVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual ConnectCustomerVirtual ReferenceConnectCustomerVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConnectCustomerVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ConnectCustomerVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConnectCustomerVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous139 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConnectCustomerVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ConnectCustomerListVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConnectCustomerListVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceConnectCustomerListVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ConnectCustomerListVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual Response48 ReferenceConnectCustomerListVirtual(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConnectCustomerListVirtualAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ConnectCustomerListVirtual /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConnectCustomerListVirtualAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConnectCustomerListVirtual?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ConnectCustomerListVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConnectCustomerListVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous143 > select, string objkey) { return ReferenceConnectCustomerListVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ConnectCustomerListVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual ConnectCustomerListVirtual ReferenceConnectCustomerListVirtual(Objkey= '')(System.Collections.Generic.IEnumerable select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConnectCustomerListVirtual(Objkey = '')Async(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ConnectCustomerListVirtual by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConnectCustomerListVirtual(Objkey= '')Async(System.Collections.Generic.IEnumerable < Anonymous143 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConnectCustomerListVirtual(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CrmCustInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCustInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCrmCustInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CrmCustInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual Response49 ReferenceCrmCustInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCustInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CrmCustInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCustInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCustInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CrmCustInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCustInfo(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous147 > select, string customerId) { return ReferenceCrmCustInfo(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CrmCustInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo ReferenceCrmCustInfo(CustomerId= '')(System.Collections.Generic.IEnumerable select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCustInfo(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CrmCustInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCustInfo(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous147 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCustInfo(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustOrdCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCustomerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustOrdCustomerAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustOrdCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual Response50 ReferenceCustOrdCustomer(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCustomerAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustOrdCustomer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCustomerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCustomer?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustOrdCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCustomer(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous151 > select, string customerId) { return ReferenceCustOrdCustomer(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustOrdCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer ReferenceCustOrdCustomer(CustomerId= '')(System.Collections.Generic.IEnumerable select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCustomer(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustOrdCustomer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCustomer(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous151 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCustomer(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerAssortmentStruct /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerAssortmentStructAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerAssortmentStructAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerAssortmentStruct /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual Response51 ReferenceCustomerAssortmentStruct(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerAssortmentStructAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerAssortmentStruct /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerAssortmentStructAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerAssortmentStruct?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerAssortmentStruct by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerAssortmentStruct(CustomerNo= '', AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous155 > select, string customerNo, string assortmentId) { return ReferenceCustomerAssortmentStruct(CustomerNo = '', AssortmentId = '')Async(select, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerAssortmentStruct by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct ReferenceCustomerAssortmentStruct(CustomerNo= '', AssortmentId= '')(System.Collections.Generic.IEnumerable select, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerAssortmentStruct(CustomerNo = '', AssortmentId = '')Async(select, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerAssortmentStruct by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerAssortmentStruct(CustomerNo= '', AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous155 > select, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerAssortmentStruct(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerPrjrepParams /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerPrjrepParamsAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerPrjrepParamsAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerPrjrepParams /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual Response52 ReferenceCustomerPrjrepParams(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerPrjrepParamsAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerPrjrepParams /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerPrjrepParamsAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerPrjrepParams?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerPrjrepParams by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerPrjrepParams(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous159 > select, string company, string identity) { return ReferenceCustomerPrjrepParams(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerPrjrepParams by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams ReferenceCustomerPrjrepParams(Company= '', Identity= '')(System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerPrjrepParams(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerPrjrepParams by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerPrjrepParams(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous159 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerPrjrepParams(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual Response53 ReferenceCustomerInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfo(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous163 > select, string customerId) { return ReferenceCustomerInfo(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual CustomerInfo ReferenceCustomerInfo(CustomerId= '')(System.Collections.Generic.IEnumerable select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfo(CustomerId = '')Async(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfo(CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous163 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfo(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_TaxIdType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxIdType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxIdTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceTaxIdTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_TaxIdType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxIdType /// A server side error occurred. public virtual Response54 ReferenceTaxIdType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxIdTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_TaxIdType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array TaxIdType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxIdTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxIdType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_TaxIdType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxIdType /// response body for entity type TaxIdType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceTaxIdType(TaxIdType= '')Async(System.Collections.Generic.IEnumerable < Anonymous166 > select, string taxIdType) { return ReferenceTaxIdType(TaxIdType = '')Async(select, taxIdType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_TaxIdType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxIdType /// response body for entity type TaxIdType /// A server side error occurred. public virtual TaxIdType ReferenceTaxIdType(TaxIdType= '')(System.Collections.Generic.IEnumerable select, string taxIdType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceTaxIdType(TaxIdType = '')Async(select, taxIdType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_TaxIdType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TaxIdType /// response body for entity type TaxIdType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceTaxIdType(TaxIdType= '')Async(System.Collections.Generic.IEnumerable < Anonymous166 > select, string taxIdType, System.Threading.CancellationToken cancellationToken) { if (taxIdType == null) throw new System.ArgumentNullException("taxIdType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_TaxIdType(TaxIdType='{TaxIdType}')?"); urlBuilder_.Replace("{TaxIdType}", System.Uri.EscapeDataString(ConvertToString(taxIdType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CurrencyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCurrencyTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCurrencyTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CurrencyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyType /// A server side error occurred. public virtual Response55 ReferenceCurrencyType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCurrencyTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CurrencyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCurrencyTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CurrencyType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CurrencyType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyType /// response body for entity type CurrencyType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCurrencyType(Company= '', CurrencyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous169 > select, string company, string currencyType) { return ReferenceCurrencyType(Company = '', CurrencyType = '')Async(select, company, currencyType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CurrencyType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyType /// response body for entity type CurrencyType /// A server side error occurred. public virtual CurrencyType ReferenceCurrencyType(Company= '', CurrencyType= '')(System.Collections.Generic.IEnumerable select, string company, string currencyType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCurrencyType(Company = '', CurrencyType = '')Async(select, company, currencyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CurrencyType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyType /// response body for entity type CurrencyType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCurrencyType(Company= '', CurrencyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous169 > select, string company, string currencyType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (currencyType == null) throw new System.ArgumentNullException("currencyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CurrencyType(Company='{Company}',CurrencyType='{CurrencyType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyType}", System.Uri.EscapeDataString(ConvertToString(currencyType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CommMethod /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCommMethodAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCommMethodAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CommMethod /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CommMethod /// A server side error occurred. public virtual Response56 ReferenceCommMethod(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCommMethodAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CommMethod /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCommMethodAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CommMethod?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CommMethod by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCommMethod(PartyType= '', Identity= '', CommId=)Async(System.Collections.Generic.IEnumerable < Anonymous173 > select, string partyType, string identity, double commId) { return ReferenceCommMethod(PartyType = '', Identity = '', CommId =)Async(select, partyType, identity, commId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CommMethod by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual CommMethod ReferenceCommMethod(PartyType= '', Identity= '', CommId=)(System.Collections.Generic.IEnumerable select, string partyType, string identity, double commId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCommMethod(PartyType = '', Identity = '', CommId =)Async(select, partyType, identity, commId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CommMethod by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCommMethod(PartyType= '', Identity= '', CommId=)Async(System.Collections.Generic.IEnumerable < Anonymous173 > select, string partyType, string identity, double commId, System.Threading.CancellationToken cancellationToken) { if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identity == null) throw new System.ArgumentNullException("identity"); if (commId == null) throw new System.ArgumentNullException("commId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CommMethod(PartyType='{PartyType}',Identity='{Identity}',CommId={CommId})?"); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommId}", System.Uri.EscapeDataString(ConvertToString(commId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesChargeType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesChargeTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesChargeTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesChargeType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeType /// A server side error occurred. public virtual Response57 ReferenceSalesChargeType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesChargeTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesChargeType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesChargeTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesChargeType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesChargeType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// key: ChargeType /// response body for entity type SalesChargeType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesChargeType(Contract= '', ChargeType= '')Async(System.Collections.Generic.IEnumerable < Anonymous176 > select, string contract, string chargeType) { return ReferenceSalesChargeType(Contract = '', ChargeType = '')Async(select, contract, chargeType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesChargeType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// key: ChargeType /// response body for entity type SalesChargeType /// A server side error occurred. public virtual SalesChargeType ReferenceSalesChargeType(Contract= '', ChargeType= '')(System.Collections.Generic.IEnumerable select, string contract, string chargeType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesChargeType(Contract = '', ChargeType = '')Async(select, contract, chargeType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesChargeType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// key: ChargeType /// response body for entity type SalesChargeType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesChargeType(Contract= '', ChargeType= '')Async(System.Collections.Generic.IEnumerable < Anonymous176 > select, string contract, string chargeType, System.Threading.CancellationToken cancellationToken) { if (contract == null) throw new System.ArgumentNullException("contract"); if (chargeType == null) throw new System.ArgumentNullException("chargeType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesChargeType(Contract='{Contract}',ChargeType='{ChargeType}')?"); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CorporateForm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CorporateForm /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCorporateFormAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCorporateFormAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CorporateForm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CorporateForm /// A server side error occurred. public virtual Response58 ReferenceCorporateForm(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCorporateFormAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CorporateForm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CorporateForm /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCorporateFormAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CorporateForm?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CorporateForm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: CorporateForm /// response body for entity type CorporateForm /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCorporateForm(CountryCode= '', CorporateForm= '')Async(System.Collections.Generic.IEnumerable < Anonymous179 > select, string countryCode, string corporateForm) { return ReferenceCorporateForm(CountryCode = '', CorporateForm = '')Async(select, countryCode, corporateForm, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CorporateForm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: CorporateForm /// response body for entity type CorporateForm /// A server side error occurred. public virtual CorporateForm ReferenceCorporateForm(CountryCode= '', CorporateForm= '')(System.Collections.Generic.IEnumerable select, string countryCode, string corporateForm) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCorporateForm(CountryCode = '', CorporateForm = '')Async(select, countryCode, corporateForm, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CorporateForm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: CorporateForm /// response body for entity type CorporateForm /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCorporateForm(CountryCode= '', CorporateForm= '')Async(System.Collections.Generic.IEnumerable < Anonymous179 > select, string countryCode, string corporateForm, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); if (corporateForm == null) throw new System.ArgumentNullException("corporateForm"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CorporateForm(CountryCode='{CountryCode}',CorporateForm='{CorporateForm}')?"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CorporateForm}", System.Uri.EscapeDataString(ConvertToString(corporateForm, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_BusinessClassification /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessClassification /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusinessClassificationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceBusinessClassificationAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_BusinessClassification /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessClassification /// A server side error occurred. public virtual Response59 ReferenceBusinessClassification(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusinessClassificationAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_BusinessClassification /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessClassification /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusinessClassificationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusinessClassification?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_BusinessClassification by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: BusinessClassification /// response body for entity type BusinessClassification /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusinessClassification(CountryCode= '', BusinessClassification= '')Async(System.Collections.Generic.IEnumerable < Anonymous182 > select, string countryCode, string businessClassification) { return ReferenceBusinessClassification(CountryCode = '', BusinessClassification = '')Async(select, countryCode, businessClassification, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_BusinessClassification by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: BusinessClassification /// response body for entity type BusinessClassification /// A server side error occurred. public virtual BusinessClassification ReferenceBusinessClassification(CountryCode= '', BusinessClassification= '')(System.Collections.Generic.IEnumerable select, string countryCode, string businessClassification) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusinessClassification(CountryCode = '', BusinessClassification = '')Async(select, countryCode, businessClassification, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_BusinessClassification by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CountryCode /// key: BusinessClassification /// response body for entity type BusinessClassification /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusinessClassification(CountryCode= '', BusinessClassification= '')Async(System.Collections.Generic.IEnumerable < Anonymous182 > select, string countryCode, string businessClassification, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); if (businessClassification == null) throw new System.ArgumentNullException("businessClassification"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusinessClassification(CountryCode='{CountryCode}',BusinessClassification='{BusinessClassification}')?"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessClassification}", System.Uri.EscapeDataString(ConvertToString(businessClassification, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ProjectSalesPrice /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceProjectSalesPriceAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceProjectSalesPriceAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ProjectSalesPrice /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual Response60 ReferenceProjectSalesPrice(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceProjectSalesPriceAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ProjectSalesPrice /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceProjectSalesPriceAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ProjectSalesPrice?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ProjectSalesPrice by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSalesPriceId /// response body for entity type ProjectSalesPrice /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceProjectSalesPrice(Company= '', ProjectSalesPriceId= '')Async(System.Collections.Generic.IEnumerable < Anonymous185 > select, string company, string projectSalesPriceId) { return ReferenceProjectSalesPrice(Company = '', ProjectSalesPriceId = '')Async(select, company, projectSalesPriceId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ProjectSalesPrice by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSalesPriceId /// response body for entity type ProjectSalesPrice /// A server side error occurred. public virtual ProjectSalesPrice ReferenceProjectSalesPrice(Company= '', ProjectSalesPriceId= '')(System.Collections.Generic.IEnumerable select, string company, string projectSalesPriceId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceProjectSalesPrice(Company = '', ProjectSalesPriceId = '')Async(select, company, projectSalesPriceId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ProjectSalesPrice by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSalesPriceId /// response body for entity type ProjectSalesPrice /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceProjectSalesPrice(Company= '', ProjectSalesPriceId= '')Async(System.Collections.Generic.IEnumerable < Anonymous185 > select, string company, string projectSalesPriceId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (projectSalesPriceId == null) throw new System.ArgumentNullException("projectSalesPriceId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ProjectSalesPrice(Company='{Company}',ProjectSalesPriceId='{ProjectSalesPriceId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ProjectSalesPriceId}", System.Uri.EscapeDataString(ConvertToString(projectSalesPriceId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_DeliveryRoute /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryRoute /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeliveryRouteAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceDeliveryRouteAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_DeliveryRoute /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryRoute /// A server side error occurred. public virtual Response61 ReferenceDeliveryRoute(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeliveryRouteAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_DeliveryRoute /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeliveryRoute /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeliveryRouteAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeliveryRoute?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_DeliveryRoute by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RouteId /// response body for entity type DeliveryRoute /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeliveryRoute(RouteId= '')Async(System.Collections.Generic.IEnumerable < Anonymous188 > select, string routeId) { return ReferenceDeliveryRoute(RouteId = '')Async(select, routeId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_DeliveryRoute by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RouteId /// response body for entity type DeliveryRoute /// A server side error occurred. public virtual DeliveryRoute ReferenceDeliveryRoute(RouteId= '')(System.Collections.Generic.IEnumerable select, string routeId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeliveryRoute(RouteId = '')Async(select, routeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_DeliveryRoute by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RouteId /// response body for entity type DeliveryRoute /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeliveryRoute(RouteId= '')Async(System.Collections.Generic.IEnumerable < Anonymous188 > select, string routeId, System.Threading.CancellationToken cancellationToken) { if (routeId == null) throw new System.ArgumentNullException("routeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeliveryRoute(RouteId='{RouteId}')?"); urlBuilder_.Replace("{RouteId}", System.Uri.EscapeDataString(ConvertToString(routeId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CurrencyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCurrencyCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCurrencyCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CurrencyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyCode /// A server side error occurred. public virtual Response62 ReferenceCurrencyCode(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCurrencyCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CurrencyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CurrencyCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCurrencyCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CurrencyCode?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CurrencyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyCode /// response body for entity type CurrencyCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCurrencyCode(Company= '', CurrencyCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous191 > select, string company, string currencyCode) { return ReferenceCurrencyCode(Company = '', CurrencyCode = '')Async(select, company, currencyCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CurrencyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyCode /// response body for entity type CurrencyCode /// A server side error occurred. public virtual CurrencyCode ReferenceCurrencyCode(Company= '', CurrencyCode= '')(System.Collections.Generic.IEnumerable select, string company, string currencyCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCurrencyCode(Company = '', CurrencyCode = '')Async(select, company, currencyCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CurrencyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CurrencyCode /// response body for entity type CurrencyCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCurrencyCode(Company= '', CurrencyCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous191 > select, string company, string currencyCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CurrencyCode(Company='{Company}',CurrencyCode='{CurrencyCode}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ConfirmationStmntTempl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ConfirmationStmntTempl /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConfirmationStmntTemplAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceConfirmationStmntTemplAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ConfirmationStmntTempl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ConfirmationStmntTempl /// A server side error occurred. public virtual Response63 ReferenceConfirmationStmntTempl(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConfirmationStmntTemplAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ConfirmationStmntTempl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ConfirmationStmntTempl /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConfirmationStmntTemplAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConfirmationStmntTempl?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ConfirmationStmntTempl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ConfirmationStmntTempl /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceConfirmationStmntTempl(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous194 > select, string company, string templateId) { return ReferenceConfirmationStmntTempl(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ConfirmationStmntTempl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ConfirmationStmntTempl /// A server side error occurred. public virtual ConfirmationStmntTempl ReferenceConfirmationStmntTempl(Company= '', TemplateId= '')(System.Collections.Generic.IEnumerable select, string company, string templateId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceConfirmationStmntTempl(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ConfirmationStmntTempl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ConfirmationStmntTempl /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceConfirmationStmntTempl(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous194 > select, string company, string templateId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (templateId == null) throw new System.ArgumentNullException("templateId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ConfirmationStmntTempl(Company='{Company}',TemplateId='{TemplateId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TemplateId}", System.Uri.EscapeDataString(ConvertToString(templateId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ArContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ArContact /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceArContactAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceArContactAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ArContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ArContact /// A server side error occurred. public virtual Response64 ReferenceArContact(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceArContactAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ArContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ArContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceArContactAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ArContact?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ArContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ArContact /// response body for entity type ArContact /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceArContact(Company= '', ArContact= '')Async(System.Collections.Generic.IEnumerable < Anonymous197 > select, string company, string arContact) { return ReferenceArContact(Company = '', ArContact = '')Async(select, company, arContact, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ArContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ArContact /// response body for entity type ArContact /// A server side error occurred. public virtual ArContact ReferenceArContact(Company= '', ArContact= '')(System.Collections.Generic.IEnumerable select, string company, string arContact) { return System.Threading.Tasks.Task.Run(async () => await ReferenceArContact(Company = '', ArContact = '')Async(select, company, arContact, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ArContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ArContact /// response body for entity type ArContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceArContact(Company= '', ArContact= '')Async(System.Collections.Generic.IEnumerable < Anonymous197 > select, string company, string arContact, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (arContact == null) throw new System.ArgumentNullException("arContact"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ArContact(Company='{Company}',ArContact='{ArContact}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ArContact}", System.Uri.EscapeDataString(ConvertToString(arContact, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ProjectSupplierMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceProjectSupplierMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceProjectSupplierMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ProjectSupplierMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual Response65 ReferenceProjectSupplierMargin(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceProjectSupplierMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ProjectSupplierMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceProjectSupplierMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ProjectSupplierMargin?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ProjectSupplierMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSupplierMarginId /// response body for entity type ProjectSupplierMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceProjectSupplierMargin(Company= '', ProjectSupplierMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous200 > select, string company, string projectSupplierMarginId) { return ReferenceProjectSupplierMargin(Company = '', ProjectSupplierMarginId = '')Async(select, company, projectSupplierMarginId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ProjectSupplierMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSupplierMarginId /// response body for entity type ProjectSupplierMargin /// A server side error occurred. public virtual ProjectSupplierMargin ReferenceProjectSupplierMargin(Company= '', ProjectSupplierMarginId= '')(System.Collections.Generic.IEnumerable select, string company, string projectSupplierMarginId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceProjectSupplierMargin(Company = '', ProjectSupplierMarginId = '')Async(select, company, projectSupplierMarginId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ProjectSupplierMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: ProjectSupplierMarginId /// response body for entity type ProjectSupplierMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceProjectSupplierMargin(Company= '', ProjectSupplierMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous200 > select, string company, string projectSupplierMarginId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (projectSupplierMarginId == null) throw new System.ArgumentNullException("projectSupplierMarginId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ProjectSupplierMargin(Company='{Company}',ProjectSupplierMarginId='{ProjectSupplierMarginId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ProjectSupplierMarginId}", System.Uri.EscapeDataString(ConvertToString(projectSupplierMarginId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CompanyPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyPayInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCompanyPayInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CompanyPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyPayInfo /// A server side error occurred. public virtual Response66 ReferenceCompanyPayInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyPayInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CompanyPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyPayInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyPayInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CompanyPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyPayInfo(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous203 > select, string company) { return ReferenceCompanyPayInfo(Company = '')Async(select, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CompanyPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyPayInfo /// A server side error occurred. public virtual CompanyPayInfo ReferenceCompanyPayInfo(Company= '')(System.Collections.Generic.IEnumerable select, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyPayInfo(Company = '')Async(select, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CompanyPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyPayInfo(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous203 > select, string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyPayInfo(Company='{Company}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InvoiceReason /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceReason /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoiceReasonAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInvoiceReasonAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InvoiceReason /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceReason /// A server side error occurred. public virtual Response67 ReferenceInvoiceReason(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoiceReasonAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InvoiceReason /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceReason /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoiceReasonAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoiceReason?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InvoiceReason by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InvoiceReasonId /// response body for entity type InvoiceReason /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoiceReason(Company= '', InvoiceReasonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous206 > select, string company, string invoiceReasonId) { return ReferenceInvoiceReason(Company = '', InvoiceReasonId = '')Async(select, company, invoiceReasonId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InvoiceReason by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InvoiceReasonId /// response body for entity type InvoiceReason /// A server side error occurred. public virtual InvoiceReason ReferenceInvoiceReason(Company= '', InvoiceReasonId= '')(System.Collections.Generic.IEnumerable select, string company, string invoiceReasonId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoiceReason(Company = '', InvoiceReasonId = '')Async(select, company, invoiceReasonId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InvoiceReason by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: InvoiceReasonId /// response body for entity type InvoiceReason /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoiceReason(Company= '', InvoiceReasonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous206 > select, string company, string invoiceReasonId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (invoiceReasonId == null) throw new System.ArgumentNullException("invoiceReasonId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoiceReason(Company='{Company}',InvoiceReasonId='{InvoiceReasonId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{InvoiceReasonId}", System.Uri.EscapeDataString(ConvertToString(invoiceReasonId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustPriceGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustPriceGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual Response68 ReferenceCustPriceGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustPriceGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustPriceGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustPriceGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustPriceGroupId /// response body for entity type CustPriceGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustPriceGroup(CustPriceGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous209 > select, string custPriceGroupId) { return ReferenceCustPriceGroup(CustPriceGroupId = '')Async(select, custPriceGroupId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustPriceGroupId /// response body for entity type CustPriceGroup /// A server side error occurred. public virtual CustPriceGroup ReferenceCustPriceGroup(CustPriceGroupId= '')(System.Collections.Generic.IEnumerable select, string custPriceGroupId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustPriceGroup(CustPriceGroupId = '')Async(select, custPriceGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustPriceGroupId /// response body for entity type CustPriceGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustPriceGroup(CustPriceGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous209 > select, string custPriceGroupId, System.Threading.CancellationToken cancellationToken) { if (custPriceGroupId == null) throw new System.ArgumentNullException("custPriceGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustPriceGroup(CustPriceGroupId='{CustPriceGroupId}')?"); urlBuilder_.Replace("{CustPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(custPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_WorkTimeCalendar /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array WorkTimeCalendar /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceWorkTimeCalendarAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceWorkTimeCalendarAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_WorkTimeCalendar /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array WorkTimeCalendar /// A server side error occurred. public virtual Response69 ReferenceWorkTimeCalendar(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceWorkTimeCalendarAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_WorkTimeCalendar /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array WorkTimeCalendar /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceWorkTimeCalendarAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_WorkTimeCalendar?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_WorkTimeCalendar by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CalendarId /// response body for entity type WorkTimeCalendar /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceWorkTimeCalendar(CalendarId= '')Async(System.Collections.Generic.IEnumerable < Anonymous212 > select, string calendarId) { return ReferenceWorkTimeCalendar(CalendarId = '')Async(select, calendarId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_WorkTimeCalendar by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CalendarId /// response body for entity type WorkTimeCalendar /// A server side error occurred. public virtual WorkTimeCalendar ReferenceWorkTimeCalendar(CalendarId= '')(System.Collections.Generic.IEnumerable select, string calendarId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceWorkTimeCalendar(CalendarId = '')Async(select, calendarId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_WorkTimeCalendar by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CalendarId /// response body for entity type WorkTimeCalendar /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceWorkTimeCalendar(CalendarId= '')Async(System.Collections.Generic.IEnumerable < Anonymous212 > select, string calendarId, System.Threading.CancellationToken cancellationToken) { if (calendarId == null) throw new System.ArgumentNullException("calendarId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_WorkTimeCalendar(CalendarId='{CalendarId}')?"); urlBuilder_.Replace("{CalendarId}", System.Uri.EscapeDataString(ConvertToString(calendarId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_StandardTravExpMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStandardTravExpMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceStandardTravExpMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_StandardTravExpMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual Response70 ReferenceStandardTravExpMargin(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStandardTravExpMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_StandardTravExpMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStandardTravExpMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StandardTravExpMargin?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_StandardTravExpMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TravelExpMarginId /// response body for entity type StandardTravExpMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStandardTravExpMargin(Company= '', TravelExpMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous215 > select, string company, string travelExpMarginId) { return ReferenceStandardTravExpMargin(Company = '', TravelExpMarginId = '')Async(select, company, travelExpMarginId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_StandardTravExpMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TravelExpMarginId /// response body for entity type StandardTravExpMargin /// A server side error occurred. public virtual StandardTravExpMargin ReferenceStandardTravExpMargin(Company= '', TravelExpMarginId= '')(System.Collections.Generic.IEnumerable select, string company, string travelExpMarginId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStandardTravExpMargin(Company = '', TravelExpMarginId = '')Async(select, company, travelExpMarginId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_StandardTravExpMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TravelExpMarginId /// response body for entity type StandardTravExpMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStandardTravExpMargin(Company= '', TravelExpMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous215 > select, string company, string travelExpMarginId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (travelExpMarginId == null) throw new System.ArgumentNullException("travelExpMarginId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StandardTravExpMargin(Company='{Company}',TravelExpMarginId='{TravelExpMarginId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TravelExpMarginId}", System.Uri.EscapeDataString(ConvertToString(travelExpMarginId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FndUser /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FndUser /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFndUserAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceFndUserAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FndUser /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FndUser /// A server side error occurred. public virtual Response71 ReferenceFndUser(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFndUserAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FndUser /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FndUser /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFndUserAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FndUser?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FndUser by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type FndUser /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFndUser(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous218 > select, string identity) { return ReferenceFndUser(Identity = '')Async(select, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FndUser by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type FndUser /// A server side error occurred. public virtual FndUser ReferenceFndUser(Identity= '')(System.Collections.Generic.IEnumerable select, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFndUser(Identity = '')Async(select, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FndUser by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Identity /// response body for entity type FndUser /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFndUser(Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous218 > select, string identity, System.Threading.CancellationToken cancellationToken) { if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FndUser(Identity='{Identity}')?"); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_Site /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Site /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSiteAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSiteAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_Site /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Site /// A server side error occurred. public virtual Response72 ReferenceSite(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSiteAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_Site /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Site /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSiteAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_Site?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_Site by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type Site /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSite(Contract= '')Async(System.Collections.Generic.IEnumerable < Anonymous221 > select, string contract) { return ReferenceSite(Contract = '')Async(select, contract, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_Site by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type Site /// A server side error occurred. public virtual Site ReferenceSite(Contract= '')(System.Collections.Generic.IEnumerable select, string contract) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSite(Contract = '')Async(select, contract, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_Site by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Contract /// response body for entity type Site /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSite(Contract= '')Async(System.Collections.Generic.IEnumerable < Anonymous221 > select, string contract, System.Threading.CancellationToken cancellationToken) { if (contract == null) throw new System.ArgumentNullException("contract"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_Site(Contract='{Contract}')?"); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesMarket /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesMarket /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesMarketAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesMarketAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesMarket /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesMarket /// A server side error occurred. public virtual Response73 ReferenceSalesMarket(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesMarketAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesMarket /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesMarket /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesMarketAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesMarket?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesMarket by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MarketCode /// response body for entity type SalesMarket /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesMarket(MarketCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous224 > select, string marketCode) { return ReferenceSalesMarket(MarketCode = '')Async(select, marketCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesMarket by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MarketCode /// response body for entity type SalesMarket /// A server side error occurred. public virtual SalesMarket ReferenceSalesMarket(MarketCode= '')(System.Collections.Generic.IEnumerable select, string marketCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesMarket(MarketCode = '')Async(select, marketCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesMarket by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MarketCode /// response body for entity type SalesMarket /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesMarket(MarketCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous224 > select, string marketCode, System.Threading.CancellationToken cancellationToken) { if (marketCode == null) throw new System.ArgumentNullException("marketCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesMarket(MarketCode='{MarketCode}')?"); urlBuilder_.Replace("{MarketCode}", System.Uri.EscapeDataString(ConvertToString(marketCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesPriceGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceGroup /// A server side error occurred. public virtual Response74 ReferenceSalesPriceGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesPriceGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// response body for entity type SalesPriceGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceGroup(SalesPriceGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous227 > select, string salesPriceGroupId) { return ReferenceSalesPriceGroup(SalesPriceGroupId = '')Async(select, salesPriceGroupId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// response body for entity type SalesPriceGroup /// A server side error occurred. public virtual SalesPriceGroup ReferenceSalesPriceGroup(SalesPriceGroupId= '')(System.Collections.Generic.IEnumerable select, string salesPriceGroupId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceGroup(SalesPriceGroupId = '')Async(select, salesPriceGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesPriceGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// response body for entity type SalesPriceGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceGroup(SalesPriceGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous227 > select, string salesPriceGroupId, System.Threading.CancellationToken cancellationToken) { if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceGroup(SalesPriceGroupId='{SalesPriceGroupId}')?"); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustOrdPrintControl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdPrintControlAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustOrdPrintControlAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustOrdPrintControl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual Response75 ReferenceCustOrdPrintControl(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdPrintControlAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustOrdPrintControl /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdPrintControlAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdPrintControl?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustOrdPrintControl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PrintControlCode /// response body for entity type CustOrdPrintControl /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdPrintControl(PrintControlCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous230 > select, string printControlCode) { return ReferenceCustOrdPrintControl(PrintControlCode = '')Async(select, printControlCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustOrdPrintControl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PrintControlCode /// response body for entity type CustOrdPrintControl /// A server side error occurred. public virtual CustOrdPrintControl ReferenceCustOrdPrintControl(PrintControlCode= '')(System.Collections.Generic.IEnumerable select, string printControlCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdPrintControl(PrintControlCode = '')Async(select, printControlCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustOrdPrintControl by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PrintControlCode /// response body for entity type CustOrdPrintControl /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdPrintControl(PrintControlCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous230 > select, string printControlCode, System.Threading.CancellationToken cancellationToken) { if (printControlCode == null) throw new System.ArgumentNullException("printControlCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdPrintControl(PrintControlCode='{PrintControlCode}')?"); urlBuilder_.Replace("{PrintControlCode}", System.Uri.EscapeDataString(ConvertToString(printControlCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ForwarderInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceForwarderInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceForwarderInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ForwarderInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual Response76 ReferenceForwarderInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceForwarderInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ForwarderInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceForwarderInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ForwarderInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ForwarderInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ForwarderId /// response body for entity type ForwarderInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceForwarderInfo(ForwarderId= '')Async(System.Collections.Generic.IEnumerable < Anonymous233 > select, string forwarderId) { return ReferenceForwarderInfo(ForwarderId = '')Async(select, forwarderId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ForwarderInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ForwarderId /// response body for entity type ForwarderInfo /// A server side error occurred. public virtual ForwarderInfo ReferenceForwarderInfo(ForwarderId= '')(System.Collections.Generic.IEnumerable select, string forwarderId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceForwarderInfo(ForwarderId = '')Async(select, forwarderId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ForwarderInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ForwarderId /// response body for entity type ForwarderInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceForwarderInfo(ForwarderId= '')Async(System.Collections.Generic.IEnumerable < Anonymous233 > select, string forwarderId, System.Threading.CancellationToken cancellationToken) { if (forwarderId == null) throw new System.ArgumentNullException("forwarderId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ForwarderInfo(ForwarderId='{ForwarderId}')?"); urlBuilder_.Replace("{ForwarderId}", System.Uri.EscapeDataString(ConvertToString(forwarderId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PersonInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePersonInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PersonInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfo /// A server side error occurred. public virtual Response77 ReferencePersonInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PersonInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PersonInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PersonInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePersonInfo(PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous236 > select, string personId) { return ReferencePersonInfo(PersonId = '')Async(select, personId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PersonInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfo /// A server side error occurred. public virtual PersonInfo ReferencePersonInfo(PersonId= '')(System.Collections.Generic.IEnumerable select, string personId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePersonInfo(PersonId = '')Async(select, personId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PersonInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PersonId /// response body for entity type PersonInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePersonInfo(PersonId= '')Async(System.Collections.Generic.IEnumerable < Anonymous236 > select, string personId, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PersonInfo(PersonId='{PersonId}')?"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ReminderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ReminderTemplate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceReminderTemplateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceReminderTemplateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ReminderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ReminderTemplate /// A server side error occurred. public virtual Response78 ReferenceReminderTemplate(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceReminderTemplateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ReminderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ReminderTemplate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceReminderTemplateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ReminderTemplate?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ReminderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ReminderTemplate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceReminderTemplate(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous239 > select, string company, string templateId) { return ReferenceReminderTemplate(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ReminderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ReminderTemplate /// A server side error occurred. public virtual ReminderTemplate ReferenceReminderTemplate(Company= '', TemplateId= '')(System.Collections.Generic.IEnumerable select, string company, string templateId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceReminderTemplate(Company = '', TemplateId = '')Async(select, company, templateId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ReminderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: TemplateId /// response body for entity type ReminderTemplate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceReminderTemplate(Company= '', TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous239 > select, string company, string templateId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (templateId == null) throw new System.ArgumentNullException("templateId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ReminderTemplate(Company='{Company}',TemplateId='{TemplateId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TemplateId}", System.Uri.EscapeDataString(ConvertToString(templateId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesPriceList /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceList /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceListAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesPriceListAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesPriceList /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceList /// A server side error occurred. public virtual Response79 ReferenceSalesPriceList(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceListAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesPriceList /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesPriceList /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceListAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceList?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesPriceList by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PriceListNo /// response body for entity type SalesPriceList /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesPriceList(PriceListNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous242 > select, string priceListNo) { return ReferenceSalesPriceList(PriceListNo = '')Async(select, priceListNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesPriceList by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PriceListNo /// response body for entity type SalesPriceList /// A server side error occurred. public virtual SalesPriceList ReferenceSalesPriceList(PriceListNo= '')(System.Collections.Generic.IEnumerable select, string priceListNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesPriceList(PriceListNo = '')Async(select, priceListNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesPriceList by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PriceListNo /// response body for entity type SalesPriceList /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesPriceList(PriceListNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous242 > select, string priceListNo, System.Threading.CancellationToken cancellationToken) { if (priceListNo == null) throw new System.ArgumentNullException("priceListNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesPriceList(PriceListNo='{PriceListNo}')?"); urlBuilder_.Replace("{PriceListNo}", System.Uri.EscapeDataString(ConvertToString(priceListNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesDistrict /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDistrict /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesDistrictAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesDistrictAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesDistrict /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDistrict /// A server side error occurred. public virtual Response80 ReferenceSalesDistrict(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesDistrictAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesDistrict /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDistrict /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesDistrictAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesDistrict?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesDistrict by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DistrictCode /// response body for entity type SalesDistrict /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesDistrict(DistrictCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous245 > select, string districtCode) { return ReferenceSalesDistrict(DistrictCode = '')Async(select, districtCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesDistrict by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DistrictCode /// response body for entity type SalesDistrict /// A server side error occurred. public virtual SalesDistrict ReferenceSalesDistrict(DistrictCode= '')(System.Collections.Generic.IEnumerable select, string districtCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesDistrict(DistrictCode = '')Async(select, districtCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesDistrict by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DistrictCode /// response body for entity type SalesDistrict /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesDistrict(DistrictCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous245 > select, string districtCode, System.Threading.CancellationToken cancellationToken) { if (districtCode == null) throw new System.ArgumentNullException("districtCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesDistrict(DistrictCode='{DistrictCode}')?"); urlBuilder_.Replace("{DistrictCode}", System.Uri.EscapeDataString(ConvertToString(districtCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InvoicePropertyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePropertyCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoicePropertyCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInvoicePropertyCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InvoicePropertyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePropertyCode /// A server side error occurred. public virtual Response81 ReferenceInvoicePropertyCode(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoicePropertyCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InvoicePropertyCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePropertyCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoicePropertyCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoicePropertyCode?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InvoicePropertyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Code /// response body for entity type InvoicePropertyCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoicePropertyCode(Company= '', Code= '')Async(System.Collections.Generic.IEnumerable < Anonymous248 > select, string company, string code) { return ReferenceInvoicePropertyCode(Company = '', Code = '')Async(select, company, code, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InvoicePropertyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Code /// response body for entity type InvoicePropertyCode /// A server side error occurred. public virtual InvoicePropertyCode ReferenceInvoicePropertyCode(Company= '', Code= '')(System.Collections.Generic.IEnumerable select, string company, string code) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoicePropertyCode(Company = '', Code = '')Async(select, company, code, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InvoicePropertyCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Code /// response body for entity type InvoicePropertyCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoicePropertyCode(Company= '', Code= '')Async(System.Collections.Generic.IEnumerable < Anonymous248 > select, string company, string code, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (code == null) throw new System.ArgumentNullException("code"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoicePropertyCode(Company='{Company}',Code='{Code}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Code}", System.Uri.EscapeDataString(ConvertToString(code, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Lookup_IsoCurrency_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoCurrencyEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return LookupIsoCurrencyEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Lookup_IsoCurrency_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual Response82 LookupIsoCurrencyEntitySet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoCurrencyEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Lookup_IsoCurrency_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoCurrencyEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoCurrency_EntitySet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Lookup_IsoCurrency_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoCurrencyEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous251 > select, string id) { return LookupIsoCurrencyEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None); } /// /// Get entity from Lookup_IsoCurrency_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual Lookup_IsoCurrency_EntityType LookupIsoCurrencyEntitySet(Id= '')(System.Collections.Generic.IEnumerable select, string id) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoCurrencyEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Lookup_IsoCurrency_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCurrency_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoCurrencyEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous251 > select, string id, System.Threading.CancellationToken cancellationToken) { if (id == null) throw new System.ArgumentNullException("id"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoCurrency_EntitySet(Id='{Id}')?"); urlBuilder_.Replace("{Id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_IsoCurrency /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCurrency /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIsoCurrencyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceIsoCurrencyAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_IsoCurrency /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCurrency /// A server side error occurred. public virtual Response83 ReferenceIsoCurrency(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIsoCurrencyAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_IsoCurrency /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array IsoCurrency /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIsoCurrencyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IsoCurrency?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_IsoCurrency by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CurrencyCode /// response body for entity type IsoCurrency /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIsoCurrency(CurrencyCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous254 > select, string currencyCode) { return ReferenceIsoCurrency(CurrencyCode = '')Async(select, currencyCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_IsoCurrency by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CurrencyCode /// response body for entity type IsoCurrency /// A server side error occurred. public virtual IsoCurrency ReferenceIsoCurrency(CurrencyCode= '')(System.Collections.Generic.IEnumerable select, string currencyCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIsoCurrency(CurrencyCode = '')Async(select, currencyCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_IsoCurrency by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CurrencyCode /// response body for entity type IsoCurrency /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIsoCurrency(CurrencyCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous254 > select, string currencyCode, System.Threading.CancellationToken cancellationToken) { if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IsoCurrency(CurrencyCode='{CurrencyCode}')?"); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_ShipmentType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ShipmentType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceShipmentTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceShipmentTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_ShipmentType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ShipmentType /// A server side error occurred. public virtual Response84 ReferenceShipmentType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceShipmentTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_ShipmentType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array ShipmentType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceShipmentTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ShipmentType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_ShipmentType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipmentType /// response body for entity type ShipmentType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceShipmentType(ShipmentType= '')Async(System.Collections.Generic.IEnumerable < Anonymous257 > select, string shipmentType) { return ReferenceShipmentType(ShipmentType = '')Async(select, shipmentType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_ShipmentType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipmentType /// response body for entity type ShipmentType /// A server side error occurred. public virtual ShipmentType ReferenceShipmentType(ShipmentType= '')(System.Collections.Generic.IEnumerable select, string shipmentType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceShipmentType(ShipmentType = '')Async(select, shipmentType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_ShipmentType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipmentType /// response body for entity type ShipmentType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceShipmentType(ShipmentType= '')Async(System.Collections.Generic.IEnumerable < Anonymous257 > select, string shipmentType, System.Threading.CancellationToken cancellationToken) { if (shipmentType == null) throw new System.ArgumentNullException("shipmentType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_ShipmentType(ShipmentType='{ShipmentType}')?"); urlBuilder_.Replace("{ShipmentType}", System.Uri.EscapeDataString(ConvertToString(shipmentType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerHierarchyLevel /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerHierarchyLevelAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerHierarchyLevelAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerHierarchyLevel /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual Response85 ReferenceCustomerHierarchyLevel(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerHierarchyLevelAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerHierarchyLevel /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerHierarchyLevelAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerHierarchyLevel?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerHierarchyLevel by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// key: CustomerLevel /// response body for entity type CustomerHierarchyLevel /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerHierarchyLevel(HierarchyId= '', CustomerLevel=)Async(System.Collections.Generic.IEnumerable < Anonymous260 > select, string hierarchyId, double customerLevel) { return ReferenceCustomerHierarchyLevel(HierarchyId = '', CustomerLevel =)Async(select, hierarchyId, customerLevel, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerHierarchyLevel by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// key: CustomerLevel /// response body for entity type CustomerHierarchyLevel /// A server side error occurred. public virtual CustomerHierarchyLevel ReferenceCustomerHierarchyLevel(HierarchyId= '', CustomerLevel=)(System.Collections.Generic.IEnumerable select, string hierarchyId, double customerLevel) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerHierarchyLevel(HierarchyId = '', CustomerLevel =)Async(select, hierarchyId, customerLevel, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerHierarchyLevel by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// key: CustomerLevel /// response body for entity type CustomerHierarchyLevel /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerHierarchyLevel(HierarchyId= '', CustomerLevel=)Async(System.Collections.Generic.IEnumerable < Anonymous260 > select, string hierarchyId, double customerLevel, System.Threading.CancellationToken cancellationToken) { if (hierarchyId == null) throw new System.ArgumentNullException("hierarchyId"); if (customerLevel == null) throw new System.ArgumentNullException("customerLevel"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerHierarchyLevel(HierarchyId='{HierarchyId}',CustomerLevel={CustomerLevel})?"); urlBuilder_.Replace("{HierarchyId}", System.Uri.EscapeDataString(ConvertToString(hierarchyId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerLevel}", System.Uri.EscapeDataString(ConvertToString(customerLevel, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CompanyInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyInvoiceInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCompanyInvoiceInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CompanyInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo /// A server side error occurred. public virtual Response86 ReferenceCompanyInvoiceInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyInvoiceInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CompanyInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyInvoiceInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyInvoiceInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CompanyInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous263 > select, string company) { return ReferenceCompanyInvoiceInfo(Company = '')Async(select, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CompanyInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo /// A server side error occurred. public virtual CompanyInvoiceInfo ReferenceCompanyInvoiceInfo(Company= '')(System.Collections.Generic.IEnumerable select, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyInvoiceInfo(Company = '')Async(select, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CompanyInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyInvoiceInfo(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous263 > select, string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyInvoiceInfo(Company='{Company}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MessageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMessageTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MessageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageType /// A server side error occurred. public virtual Response87 ReferenceMessageType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MessageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MessageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MessageType /// response body for entity type MessageType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageType(Company= '', MessageType= '')Async(System.Collections.Generic.IEnumerable < Anonymous266 > select, string company, string messageType) { return ReferenceMessageType(Company = '', MessageType = '')Async(select, company, messageType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MessageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MessageType /// response body for entity type MessageType /// A server side error occurred. public virtual MessageType ReferenceMessageType(Company= '', MessageType= '')(System.Collections.Generic.IEnumerable select, string company, string messageType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageType(Company = '', MessageType = '')Async(select, company, messageType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MessageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MessageType /// response body for entity type MessageType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageType(Company= '', MessageType= '')Async(System.Collections.Generic.IEnumerable < Anonymous266 > select, string company, string messageType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (messageType == null) throw new System.ArgumentNullException("messageType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageType(Company='{Company}',MessageType='{MessageType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageType}", System.Uri.EscapeDataString(ConvertToString(messageType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InvoicePartyTypeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePartyTypeGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoicePartyTypeGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInvoicePartyTypeGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InvoicePartyTypeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePartyTypeGroup /// A server side error occurred. public virtual Response88 ReferenceInvoicePartyTypeGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoicePartyTypeGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InvoicePartyTypeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoicePartyTypeGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoicePartyTypeGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoicePartyTypeGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InvoicePartyTypeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: GroupId /// response body for entity type InvoicePartyTypeGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoicePartyTypeGroup(Company= '', PartyType= '', GroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous269 > select, string company, string partyType, string groupId) { return ReferenceInvoicePartyTypeGroup(Company = '', PartyType = '', GroupId = '')Async(select, company, partyType, groupId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InvoicePartyTypeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: GroupId /// response body for entity type InvoicePartyTypeGroup /// A server side error occurred. public virtual InvoicePartyTypeGroup ReferenceInvoicePartyTypeGroup(Company= '', PartyType= '', GroupId= '')(System.Collections.Generic.IEnumerable select, string company, string partyType, string groupId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoicePartyTypeGroup(Company = '', PartyType = '', GroupId = '')Async(select, company, partyType, groupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InvoicePartyTypeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: GroupId /// response body for entity type InvoicePartyTypeGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoicePartyTypeGroup(Company= '', PartyType= '', GroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous269 > select, string company, string partyType, string groupId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (groupId == null) throw new System.ArgumentNullException("groupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoicePartyTypeGroup(Company='{Company}',PartyType='{PartyType}',GroupId='{GroupId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{GroupId}", System.Uri.EscapeDataString(ConvertToString(groupId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_InvoiceNumerationGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceNumerationGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoiceNumerationGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceInvoiceNumerationGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_InvoiceNumerationGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceNumerationGroup /// A server side error occurred. public virtual Response89 ReferenceInvoiceNumerationGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoiceNumerationGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_InvoiceNumerationGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array InvoiceNumerationGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoiceNumerationGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoiceNumerationGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_InvoiceNumerationGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: NumerationGroup /// response body for entity type InvoiceNumerationGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceInvoiceNumerationGroup(Company= '', PartyType= '', NumerationGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous272 > select, string company, string partyType, string numerationGroup) { return ReferenceInvoiceNumerationGroup(Company = '', PartyType = '', NumerationGroup = '')Async(select, company, partyType, numerationGroup, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_InvoiceNumerationGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: NumerationGroup /// response body for entity type InvoiceNumerationGroup /// A server side error occurred. public virtual InvoiceNumerationGroup ReferenceInvoiceNumerationGroup(Company= '', PartyType= '', NumerationGroup= '')(System.Collections.Generic.IEnumerable select, string company, string partyType, string numerationGroup) { return System.Threading.Tasks.Task.Run(async () => await ReferenceInvoiceNumerationGroup(Company = '', PartyType = '', NumerationGroup = '')Async(select, company, partyType, numerationGroup, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_InvoiceNumerationGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PartyType /// key: NumerationGroup /// response body for entity type InvoiceNumerationGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceInvoiceNumerationGroup(Company= '', PartyType= '', NumerationGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous272 > select, string company, string partyType, string numerationGroup, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (numerationGroup == null) throw new System.ArgumentNullException("numerationGroup"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_InvoiceNumerationGroup(Company='{Company}',PartyType='{PartyType}',NumerationGroup='{NumerationGroup}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NumerationGroup}", System.Uri.EscapeDataString(ConvertToString(numerationGroup, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerGroup /// A server side error occurred. public virtual Response90 ReferenceCustomerGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustGrp /// response body for entity type CustomerGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerGroup(CustGrp= '')Async(System.Collections.Generic.IEnumerable < Anonymous275 > select, string custGrp) { return ReferenceCustomerGroup(CustGrp = '')Async(select, custGrp, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustGrp /// response body for entity type CustomerGroup /// A server side error occurred. public virtual CustomerGroup ReferenceCustomerGroup(CustGrp= '')(System.Collections.Generic.IEnumerable select, string custGrp) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerGroup(CustGrp = '')Async(select, custGrp, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustGrp /// response body for entity type CustomerGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerGroup(CustGrp= '')Async(System.Collections.Generic.IEnumerable < Anonymous275 > select, string custGrp, System.Threading.CancellationToken cancellationToken) { if (custGrp == null) throw new System.ArgumentNullException("custGrp"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerGroup(CustGrp='{CustGrp}')?"); urlBuilder_.Replace("{CustGrp}", System.Uri.EscapeDataString(ConvertToString(custGrp, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerOrderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerOrderTemplateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerOrderTemplateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerOrderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual Response91 ReferenceCustomerOrderTemplate(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerOrderTemplateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerOrderTemplate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerOrderTemplateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerOrderTemplate?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerOrderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateId /// response body for entity type CustomerOrderTemplate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerOrderTemplate(TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous278 > select, string templateId) { return ReferenceCustomerOrderTemplate(TemplateId = '')Async(select, templateId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerOrderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateId /// response body for entity type CustomerOrderTemplate /// A server side error occurred. public virtual CustomerOrderTemplate ReferenceCustomerOrderTemplate(TemplateId= '')(System.Collections.Generic.IEnumerable select, string templateId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerOrderTemplate(TemplateId = '')Async(select, templateId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerOrderTemplate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: TemplateId /// response body for entity type CustomerOrderTemplate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerOrderTemplate(TemplateId= '')Async(System.Collections.Generic.IEnumerable < Anonymous278 > select, string templateId, System.Threading.CancellationToken cancellationToken) { if (templateId == null) throw new System.ArgumentNullException("templateId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerOrderTemplate(TemplateId='{TemplateId}')?"); urlBuilder_.Replace("{TemplateId}", System.Uri.EscapeDataString(ConvertToString(templateId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CommissionReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CommissionReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCommissionReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCommissionReceiverAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CommissionReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CommissionReceiver /// A server side error occurred. public virtual Response92 ReferenceCommissionReceiver(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCommissionReceiverAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CommissionReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CommissionReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCommissionReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CommissionReceiver?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CommissionReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CommissionReceiver /// response body for entity type CommissionReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCommissionReceiver(CommissionReceiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous281 > select, string commissionReceiver) { return ReferenceCommissionReceiver(CommissionReceiver = '')Async(select, commissionReceiver, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CommissionReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CommissionReceiver /// response body for entity type CommissionReceiver /// A server side error occurred. public virtual CommissionReceiver ReferenceCommissionReceiver(CommissionReceiver= '')(System.Collections.Generic.IEnumerable select, string commissionReceiver) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCommissionReceiver(CommissionReceiver = '')Async(select, commissionReceiver, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CommissionReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CommissionReceiver /// response body for entity type CommissionReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCommissionReceiver(CommissionReceiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous281 > select, string commissionReceiver, System.Threading.CancellationToken cancellationToken) { if (commissionReceiver == null) throw new System.ArgumentNullException("commissionReceiver"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CommissionReceiver(CommissionReceiver='{CommissionReceiver}')?"); urlBuilder_.Replace("{CommissionReceiver}", System.Uri.EscapeDataString(ConvertToString(commissionReceiver, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_StandardMatWithMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStandardMatWithMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceStandardMatWithMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_StandardMatWithMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual Response93 ReferenceStandardMatWithMargin(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStandardMatWithMarginAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_StandardMatWithMargin /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStandardMatWithMarginAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StandardMatWithMargin?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_StandardMatWithMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MatWithMarginId /// response body for entity type StandardMatWithMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStandardMatWithMargin(Company= '', MatWithMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous284 > select, string company, string matWithMarginId) { return ReferenceStandardMatWithMargin(Company = '', MatWithMarginId = '')Async(select, company, matWithMarginId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_StandardMatWithMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MatWithMarginId /// response body for entity type StandardMatWithMargin /// A server side error occurred. public virtual StandardMatWithMargin ReferenceStandardMatWithMargin(Company= '', MatWithMarginId= '')(System.Collections.Generic.IEnumerable select, string company, string matWithMarginId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStandardMatWithMargin(Company = '', MatWithMarginId = '')Async(select, company, matWithMarginId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_StandardMatWithMargin by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: MatWithMarginId /// response body for entity type StandardMatWithMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStandardMatWithMargin(Company= '', MatWithMarginId= '')Async(System.Collections.Generic.IEnumerable < Anonymous284 > select, string company, string matWithMarginId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (matWithMarginId == null) throw new System.ArgumentNullException("matWithMarginId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StandardMatWithMargin(Company='{Company}',MatWithMarginId='{MatWithMarginId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MatWithMarginId}", System.Uri.EscapeDataString(ConvertToString(matWithMarginId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_StatutoryFee /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StatutoryFee /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStatutoryFeeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceStatutoryFeeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_StatutoryFee /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StatutoryFee /// A server side error occurred. public virtual Response94 ReferenceStatutoryFee(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStatutoryFeeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_StatutoryFee /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array StatutoryFee /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStatutoryFeeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StatutoryFee?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_StatutoryFee by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type StatutoryFee /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceStatutoryFee(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous287 > select, string company, string feeCode) { return ReferenceStatutoryFee(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_StatutoryFee by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type StatutoryFee /// A server side error occurred. public virtual StatutoryFee ReferenceStatutoryFee(Company= '', FeeCode= '')(System.Collections.Generic.IEnumerable select, string company, string feeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceStatutoryFee(Company = '', FeeCode = '')Async(select, company, feeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_StatutoryFee by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: FeeCode /// response body for entity type StatutoryFee /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceStatutoryFee(Company= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous287 > select, string company, string feeCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (feeCode == null) throw new System.ArgumentNullException("feeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_StatutoryFee(Company='{Company}',FeeCode='{FeeCode}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{FeeCode}", System.Uri.EscapeDataString(ConvertToString(feeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerHierarchy /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerHierarchyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerHierarchyAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerHierarchy /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual Response95 ReferenceCustomerHierarchy(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerHierarchyAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerHierarchy /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerHierarchyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerHierarchy?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerHierarchy by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// response body for entity type CustomerHierarchy /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerHierarchy(HierarchyId= '')Async(System.Collections.Generic.IEnumerable < Anonymous290 > select, string hierarchyId) { return ReferenceCustomerHierarchy(HierarchyId = '')Async(select, hierarchyId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerHierarchy by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// response body for entity type CustomerHierarchy /// A server side error occurred. public virtual CustomerHierarchy ReferenceCustomerHierarchy(HierarchyId= '')(System.Collections.Generic.IEnumerable select, string hierarchyId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerHierarchy(HierarchyId = '')Async(select, hierarchyId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerHierarchy by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: HierarchyId /// response body for entity type CustomerHierarchy /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerHierarchy(HierarchyId= '')Async(System.Collections.Generic.IEnumerable < Anonymous290 > select, string hierarchyId, System.Threading.CancellationToken cancellationToken) { if (hierarchyId == null) throw new System.ArgumentNullException("hierarchyId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerHierarchy(HierarchyId='{HierarchyId}')?"); urlBuilder_.Replace("{HierarchyId}", System.Uri.EscapeDataString(ConvertToString(hierarchyId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesRegion /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesRegion /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesRegionAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesRegionAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesRegion /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesRegion /// A server side error occurred. public virtual Response96 ReferenceSalesRegion(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesRegionAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesRegion /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesRegion /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesRegionAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesRegion?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesRegion by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RegionCode /// response body for entity type SalesRegion /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesRegion(RegionCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous293 > select, string regionCode) { return ReferenceSalesRegion(RegionCode = '')Async(select, regionCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesRegion by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RegionCode /// response body for entity type SalesRegion /// A server side error occurred. public virtual SalesRegion ReferenceSalesRegion(RegionCode= '')(System.Collections.Generic.IEnumerable select, string regionCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesRegion(RegionCode = '')Async(select, regionCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesRegion by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: RegionCode /// response body for entity type SalesRegion /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesRegion(RegionCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous293 > select, string regionCode, System.Threading.CancellationToken cancellationToken) { if (regionCode == null) throw new System.ArgumentNullException("regionCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesRegion(RegionCode='{RegionCode}')?"); urlBuilder_.Replace("{RegionCode}", System.Uri.EscapeDataString(ConvertToString(regionCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_DeductionGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeductionGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeductionGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceDeductionGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_DeductionGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeductionGroup /// A server side error occurred. public virtual Response97 ReferenceDeductionGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeductionGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_DeductionGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array DeductionGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeductionGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeductionGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_DeductionGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DeductionGroup /// response body for entity type DeductionGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDeductionGroup(Company= '', DeductionGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous296 > select, string company, string deductionGroup) { return ReferenceDeductionGroup(Company = '', DeductionGroup = '')Async(select, company, deductionGroup, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_DeductionGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DeductionGroup /// response body for entity type DeductionGroup /// A server side error occurred. public virtual DeductionGroup ReferenceDeductionGroup(Company= '', DeductionGroup= '')(System.Collections.Generic.IEnumerable select, string company, string deductionGroup) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDeductionGroup(Company = '', DeductionGroup = '')Async(select, company, deductionGroup, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_DeductionGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: DeductionGroup /// response body for entity type DeductionGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDeductionGroup(Company= '', DeductionGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous296 > select, string company, string deductionGroup, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (deductionGroup == null) throw new System.ArgumentNullException("deductionGroup"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DeductionGroup(Company='{Company}',DeductionGroup='{DeductionGroup}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{DeductionGroup}", System.Uri.EscapeDataString(ConvertToString(deductionGroup, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_AssortmentStructure /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssortmentStructureAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceAssortmentStructureAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_AssortmentStructure /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual Response98 ReferenceAssortmentStructure(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssortmentStructureAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_AssortmentStructure /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssortmentStructureAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssortmentStructure?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_AssortmentStructure by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentStructure /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceAssortmentStructure(AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous299 > select, string assortmentId) { return ReferenceAssortmentStructure(AssortmentId = '')Async(select, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_AssortmentStructure by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentStructure /// A server side error occurred. public virtual AssortmentStructure ReferenceAssortmentStructure(AssortmentId= '')(System.Collections.Generic.IEnumerable select, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceAssortmentStructure(AssortmentId = '')Async(select, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_AssortmentStructure by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: AssortmentId /// response body for entity type AssortmentStructure /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceAssortmentStructure(AssortmentId= '')Async(System.Collections.Generic.IEnumerable < Anonymous299 > select, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_AssortmentStructure(AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesChargeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesChargeGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesChargeGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesChargeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeGroup /// A server side error occurred. public virtual Response99 ReferenceSalesChargeGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesChargeGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesChargeGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesChargeGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesChargeGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesChargeGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesChargeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChargeGroup /// response body for entity type SalesChargeGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesChargeGroup(ChargeGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous302 > select, string chargeGroup) { return ReferenceSalesChargeGroup(ChargeGroup = '')Async(select, chargeGroup, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesChargeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChargeGroup /// response body for entity type SalesChargeGroup /// A server side error occurred. public virtual SalesChargeGroup ReferenceSalesChargeGroup(ChargeGroup= '')(System.Collections.Generic.IEnumerable select, string chargeGroup) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesChargeGroup(ChargeGroup = '')Async(select, chargeGroup, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesChargeGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChargeGroup /// response body for entity type SalesChargeGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesChargeGroup(ChargeGroup= '')Async(System.Collections.Generic.IEnumerable < Anonymous302 > select, string chargeGroup, System.Threading.CancellationToken cancellationToken) { if (chargeGroup == null) throw new System.ArgumentNullException("chargeGroup"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesChargeGroup(ChargeGroup='{ChargeGroup}')?"); urlBuilder_.Replace("{ChargeGroup}", System.Uri.EscapeDataString(ConvertToString(chargeGroup, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PaymentTerm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentTerm /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentTermAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePaymentTermAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PaymentTerm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentTerm /// A server side error occurred. public virtual Response100 ReferencePaymentTerm(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentTermAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PaymentTerm /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentTerm /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentTermAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentTerm?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PaymentTerm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PayTermId /// response body for entity type PaymentTerm /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentTerm(Company= '', PayTermId= '')Async(System.Collections.Generic.IEnumerable < Anonymous305 > select, string company, string payTermId) { return ReferencePaymentTerm(Company = '', PayTermId = '')Async(select, company, payTermId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PaymentTerm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PayTermId /// response body for entity type PaymentTerm /// A server side error occurred. public virtual PaymentTerm ReferencePaymentTerm(Company= '', PayTermId= '')(System.Collections.Generic.IEnumerable select, string company, string payTermId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentTerm(Company = '', PayTermId = '')Async(select, company, payTermId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PaymentTerm by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: PayTermId /// response body for entity type PaymentTerm /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentTerm(Company= '', PayTermId= '')Async(System.Collections.Generic.IEnumerable < Anonymous305 > select, string company, string payTermId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (payTermId == null) throw new System.ArgumentNullException("payTermId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentTerm(Company='{Company}',PayTermId='{PayTermId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PayTermId}", System.Uri.EscapeDataString(ConvertToString(payTermId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MpccomShipVia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomShipVia /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMpccomShipViaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMpccomShipViaAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MpccomShipVia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomShipVia /// A server side error occurred. public virtual Response101 ReferenceMpccomShipVia(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMpccomShipViaAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MpccomShipVia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MpccomShipVia /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMpccomShipViaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MpccomShipVia?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MpccomShipVia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipViaCode /// response body for entity type MpccomShipVia /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMpccomShipVia(ShipViaCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous308 > select, string shipViaCode) { return ReferenceMpccomShipVia(ShipViaCode = '')Async(select, shipViaCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MpccomShipVia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipViaCode /// response body for entity type MpccomShipVia /// A server side error occurred. public virtual MpccomShipVia ReferenceMpccomShipVia(ShipViaCode= '')(System.Collections.Generic.IEnumerable select, string shipViaCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMpccomShipVia(ShipViaCode = '')Async(select, shipViaCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MpccomShipVia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ShipViaCode /// response body for entity type MpccomShipVia /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMpccomShipVia(ShipViaCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous308 > select, string shipViaCode, System.Threading.CancellationToken cancellationToken) { if (shipViaCode == null) throw new System.ArgumentNullException("shipViaCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MpccomShipVia(ShipViaCode='{ShipViaCode}')?"); urlBuilder_.Replace("{ShipViaCode}", System.Uri.EscapeDataString(ConvertToString(shipViaCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustOrderType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrderType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrderTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustOrderTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustOrderType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrderType /// A server side error occurred. public virtual Response102 ReferenceCustOrderType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrderTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustOrderType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustOrderType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrderTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrderType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustOrderType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OrderId /// response body for entity type CustOrderType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrderType(OrderId= '')Async(System.Collections.Generic.IEnumerable < Anonymous311 > select, string orderId) { return ReferenceCustOrderType(OrderId = '')Async(select, orderId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustOrderType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OrderId /// response body for entity type CustOrderType /// A server side error occurred. public virtual CustOrderType ReferenceCustOrderType(OrderId= '')(System.Collections.Generic.IEnumerable select, string orderId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrderType(OrderId = '')Async(select, orderId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustOrderType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OrderId /// response body for entity type CustOrderType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrderType(OrderId= '')Async(System.Collections.Generic.IEnumerable < Anonymous311 > select, string orderId, System.Threading.CancellationToken cancellationToken) { if (orderId == null) throw new System.ArgumentNullException("orderId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrderType(OrderId='{OrderId}')?"); urlBuilder_.Replace("{OrderId}", System.Uri.EscapeDataString(ConvertToString(orderId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_BusinessLead /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessLead /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusinessLeadAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceBusinessLeadAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_BusinessLead /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessLead /// A server side error occurred. public virtual Response103 ReferenceBusinessLead(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusinessLeadAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_BusinessLead /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array BusinessLead /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusinessLeadAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusinessLead?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_BusinessLead by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LeadId /// response body for entity type BusinessLead /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusinessLead(LeadId= '')Async(System.Collections.Generic.IEnumerable < Anonymous314 > select, string leadId) { return ReferenceBusinessLead(LeadId = '')Async(select, leadId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_BusinessLead by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LeadId /// response body for entity type BusinessLead /// A server side error occurred. public virtual BusinessLead ReferenceBusinessLead(LeadId= '')(System.Collections.Generic.IEnumerable select, string leadId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusinessLead(LeadId = '')Async(select, leadId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_BusinessLead by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LeadId /// response body for entity type BusinessLead /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusinessLead(LeadId= '')Async(System.Collections.Generic.IEnumerable < Anonymous314 > select, string leadId, System.Threading.CancellationToken cancellationToken) { if (leadId == null) throw new System.ArgumentNullException("leadId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusinessLead(LeadId='{LeadId}')?"); urlBuilder_.Replace("{LeadId}", System.Uri.EscapeDataString(ConvertToString(leadId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_SalesDiscountType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesDiscountTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceSalesDiscountTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_SalesDiscountType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual Response104 ReferenceSalesDiscountType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesDiscountTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_SalesDiscountType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesDiscountTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesDiscountType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_SalesDiscountType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DiscountType /// response body for entity type SalesDiscountType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceSalesDiscountType(DiscountType= '')Async(System.Collections.Generic.IEnumerable < Anonymous317 > select, string discountType) { return ReferenceSalesDiscountType(DiscountType = '')Async(select, discountType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_SalesDiscountType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DiscountType /// response body for entity type SalesDiscountType /// A server side error occurred. public virtual SalesDiscountType ReferenceSalesDiscountType(DiscountType= '')(System.Collections.Generic.IEnumerable select, string discountType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceSalesDiscountType(DiscountType = '')Async(select, discountType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_SalesDiscountType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: DiscountType /// response body for entity type SalesDiscountType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceSalesDiscountType(DiscountType= '')Async(System.Collections.Generic.IEnumerable < Anonymous317 > select, string discountType, System.Threading.CancellationToken cancellationToken) { if (discountType == null) throw new System.ArgumentNullException("discountType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_SalesDiscountType(DiscountType='{DiscountType}')?"); urlBuilder_.Replace("{DiscountType}", System.Uri.EscapeDataString(ConvertToString(discountType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CreditControlGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditControlGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCreditControlGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CreditControlGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual Response105 ReferenceCreditControlGroup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditControlGroupAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CreditControlGroup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditControlGroupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditControlGroup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CreditControlGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CreditControlGroupId /// response body for entity type CreditControlGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditControlGroup(CreditControlGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous320 > select, string creditControlGroupId) { return ReferenceCreditControlGroup(CreditControlGroupId = '')Async(select, creditControlGroupId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CreditControlGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CreditControlGroupId /// response body for entity type CreditControlGroup /// A server side error occurred. public virtual CreditControlGroup ReferenceCreditControlGroup(CreditControlGroupId= '')(System.Collections.Generic.IEnumerable select, string creditControlGroupId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditControlGroup(CreditControlGroupId = '')Async(select, creditControlGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CreditControlGroup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CreditControlGroupId /// response body for entity type CreditControlGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditControlGroup(CreditControlGroupId= '')Async(System.Collections.Generic.IEnumerable < Anonymous320 > select, string creditControlGroupId, System.Threading.CancellationToken cancellationToken) { if (creditControlGroupId == null) throw new System.ArgumentNullException("creditControlGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditControlGroup(CreditControlGroupId='{CreditControlGroupId}')?"); urlBuilder_.Replace("{CreditControlGroupId}", System.Uri.EscapeDataString(ConvertToString(creditControlGroupId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxInfo /// A server side error occurred. public virtual Response106 ReferenceCustomerTaxInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// response body for entity type CustomerTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxInfo(CustomerId= '', AddressId= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous324 > select, string customerId, string addressId, string company) { return ReferenceCustomerTaxInfo(CustomerId = '', AddressId = '', Company = '')Async(select, customerId, addressId, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// response body for entity type CustomerTaxInfo /// A server side error occurred. public virtual CustomerTaxInfo ReferenceCustomerTaxInfo(CustomerId= '', AddressId= '', Company= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxInfo(CustomerId = '', AddressId = '', Company = '')Async(select, customerId, addressId, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// response body for entity type CustomerTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxInfo(CustomerId= '', AddressId= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous324 > select, string customerId, string addressId, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxInfo(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerDeliveryTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDeliveryTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerDeliveryTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerDeliveryTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryTaxInfo /// A server side error occurred. public virtual Response107 ReferenceCustomerDeliveryTaxInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDeliveryTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerDeliveryTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDeliveryTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDeliveryTaxInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerDeliveryTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// response body for entity type CustomerDeliveryTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDeliveryTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous328 > select, string customerId, string addressId, string company, string supplyCountryDb) { return ReferenceCustomerDeliveryTaxInfo(CustomerId = '', AddressId = '', Company = '', SupplyCountryDb = '')Async(select, customerId, addressId, company, supplyCountryDb, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerDeliveryTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// response body for entity type CustomerDeliveryTaxInfo /// A server side error occurred. public virtual CustomerDeliveryTaxInfo ReferenceCustomerDeliveryTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountryDb) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDeliveryTaxInfo(CustomerId = '', AddressId = '', Company = '', SupplyCountryDb = '')Async(select, customerId, addressId, company, supplyCountryDb, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerDeliveryTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// response body for entity type CustomerDeliveryTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDeliveryTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous328 > select, string customerId, string addressId, string company, string supplyCountryDb, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountryDb == null) throw new System.ArgumentNullException("supplyCountryDb"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDeliveryTaxInfo(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountryDb='{SupplyCountryDb}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountryDb}", System.Uri.EscapeDataString(ConvertToString(supplyCountryDb, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerDeliveryFeeCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryFeeCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDeliveryFeeCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerDeliveryFeeCodeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerDeliveryFeeCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryFeeCode /// A server side error occurred. public virtual Response108 ReferenceCustomerDeliveryFeeCode(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDeliveryFeeCodeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerDeliveryFeeCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDeliveryFeeCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDeliveryFeeCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDeliveryFeeCode?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerDeliveryFeeCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: FeeCode /// response body for entity type CustomerDeliveryFeeCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDeliveryFeeCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous332 > select, string customerId, string addressId, string company, string supplyCountry, string feeCode) { return ReferenceCustomerDeliveryFeeCode(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', FeeCode = '')Async(select, customerId, addressId, company, supplyCountry, feeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerDeliveryFeeCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: FeeCode /// response body for entity type CustomerDeliveryFeeCode /// A server side error occurred. public virtual CustomerDeliveryFeeCode ReferenceCustomerDeliveryFeeCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', FeeCode= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountry, string feeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDeliveryFeeCode(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', FeeCode = '')Async(select, customerId, addressId, company, supplyCountry, feeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerDeliveryFeeCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: FeeCode /// response body for entity type CustomerDeliveryFeeCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDeliveryFeeCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', FeeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous332 > select, string customerId, string addressId, string company, string supplyCountry, string feeCode, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountry == null) throw new System.ArgumentNullException("supplyCountry"); if (feeCode == null) throw new System.ArgumentNullException("feeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDeliveryFeeCode(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountry='{SupplyCountry}',FeeCode='{FeeCode}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountry}", System.Uri.EscapeDataString(ConvertToString(supplyCountry, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{FeeCode}", System.Uri.EscapeDataString(ConvertToString(feeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerTaxFreeTaxCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxFreeTaxCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxFreeTaxCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerTaxFreeTaxCodeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerTaxFreeTaxCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxFreeTaxCode /// A server side error occurred. public virtual Response109 ReferenceCustomerTaxFreeTaxCode(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxFreeTaxCodeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerTaxFreeTaxCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxFreeTaxCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxFreeTaxCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxFreeTaxCode?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerTaxFreeTaxCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryType /// response body for entity type CustomerTaxFreeTaxCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxFreeTaxCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryType= '')Async(System.Collections.Generic.IEnumerable < Anonymous336 > select, string customerId, string addressId, string company, string supplyCountry, string deliveryType) { return ReferenceCustomerTaxFreeTaxCode(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', DeliveryType = '')Async(select, customerId, addressId, company, supplyCountry, deliveryType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerTaxFreeTaxCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryType /// response body for entity type CustomerTaxFreeTaxCode /// A server side error occurred. public virtual CustomerTaxFreeTaxCode ReferenceCustomerTaxFreeTaxCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryType= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountry, string deliveryType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxFreeTaxCode(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', DeliveryType = '')Async(select, customerId, addressId, company, supplyCountry, deliveryType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerTaxFreeTaxCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryType /// response body for entity type CustomerTaxFreeTaxCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxFreeTaxCode(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryType= '')Async(System.Collections.Generic.IEnumerable < Anonymous336 > select, string customerId, string addressId, string company, string supplyCountry, string deliveryType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountry == null) throw new System.ArgumentNullException("supplyCountry"); if (deliveryType == null) throw new System.ArgumentNullException("deliveryType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxFreeTaxCode(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountry='{SupplyCountry}',DeliveryType='{DeliveryType}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountry}", System.Uri.EscapeDataString(ConvertToString(supplyCountry, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{DeliveryType}", System.Uri.EscapeDataString(ConvertToString(deliveryType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerDelTaxExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerDelTaxExempt /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDelTaxExemptAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerDelTaxExemptAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerDelTaxExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerDelTaxExempt /// A server side error occurred. public virtual Response110 ReferenceCustomerDelTaxExempt(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDelTaxExemptAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerDelTaxExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerDelTaxExempt /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDelTaxExemptAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDelTaxExempt?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerDelTaxExempt by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: TaxExemptionCertNo /// response body for entity type CustomerDelTaxExempt /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDelTaxExempt(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', TaxExemptionCertNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous339 > select, string customerId, string addressId, string company, string supplyCountry, string taxExemptionCertNo) { return ReferenceCustomerDelTaxExempt(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', TaxExemptionCertNo = '')Async(select, customerId, addressId, company, supplyCountry, taxExemptionCertNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerDelTaxExempt by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: TaxExemptionCertNo /// response body for entity type CustomerDelTaxExempt /// A server side error occurred. public virtual CustomerDelTaxExempt ReferenceCustomerDelTaxExempt(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', TaxExemptionCertNo= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountry, string taxExemptionCertNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDelTaxExempt(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', TaxExemptionCertNo = '')Async(select, customerId, addressId, company, supplyCountry, taxExemptionCertNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerDelTaxExempt by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: TaxExemptionCertNo /// response body for entity type CustomerDelTaxExempt /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDelTaxExempt(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', TaxExemptionCertNo= '')Async(System.Collections.Generic.IEnumerable < Anonymous339 > select, string customerId, string addressId, string company, string supplyCountry, string taxExemptionCertNo, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountry == null) throw new System.ArgumentNullException("supplyCountry"); if (taxExemptionCertNo == null) throw new System.ArgumentNullException("taxExemptionCertNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDelTaxExempt(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountry='{SupplyCountry}',TaxExemptionCertNo='{TaxExemptionCertNo}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountry}", System.Uri.EscapeDataString(ConvertToString(supplyCountry, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TaxExemptionCertNo}", System.Uri.EscapeDataString(ConvertToString(taxExemptionCertNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerDocumentTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDocumentTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDocumentTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerDocumentTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerDocumentTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDocumentTaxInfo /// A server side error occurred. public virtual Response111 ReferenceCustomerDocumentTaxInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDocumentTaxInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerDocumentTaxInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerDocumentTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDocumentTaxInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDocumentTaxInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerDocumentTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// key: DeliveryCountryDb /// response body for entity type CustomerDocumentTaxInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerDocumentTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '', DeliveryCountryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous343 > select, string customerId, string addressId, string company, string supplyCountryDb, string deliveryCountryDb) { return ReferenceCustomerDocumentTaxInfo(CustomerId = '', AddressId = '', Company = '', SupplyCountryDb = '', DeliveryCountryDb = '')Async(select, customerId, addressId, company, supplyCountryDb, deliveryCountryDb, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerDocumentTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// key: DeliveryCountryDb /// response body for entity type CustomerDocumentTaxInfo /// A server side error occurred. public virtual CustomerDocumentTaxInfo ReferenceCustomerDocumentTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '', DeliveryCountryDb= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountryDb, string deliveryCountryDb) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerDocumentTaxInfo(CustomerId = '', AddressId = '', Company = '', SupplyCountryDb = '', DeliveryCountryDb = '')Async(select, customerId, addressId, company, supplyCountryDb, deliveryCountryDb, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerDocumentTaxInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountryDb /// key: DeliveryCountryDb /// response body for entity type CustomerDocumentTaxInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerDocumentTaxInfo(CustomerId= '', AddressId= '', Company= '', SupplyCountryDb= '', DeliveryCountryDb= '')Async(System.Collections.Generic.IEnumerable < Anonymous343 > select, string customerId, string addressId, string company, string supplyCountryDb, string deliveryCountryDb, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountryDb == null) throw new System.ArgumentNullException("supplyCountryDb"); if (deliveryCountryDb == null) throw new System.ArgumentNullException("deliveryCountryDb"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerDocumentTaxInfo(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountryDb='{SupplyCountryDb}',DeliveryCountryDb='{DeliveryCountryDb}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountryDb}", System.Uri.EscapeDataString(ConvertToString(supplyCountryDb, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{DeliveryCountryDb}", System.Uri.EscapeDataString(ConvertToString(deliveryCountryDb, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerAddrTaxNumber /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAddrTaxNumber /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerAddrTaxNumberAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerAddrTaxNumberAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerAddrTaxNumber /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAddrTaxNumber /// A server side error occurred. public virtual Response112 ReferenceCustomerAddrTaxNumber(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerAddrTaxNumberAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerAddrTaxNumber /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAddrTaxNumber /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerAddrTaxNumberAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerAddrTaxNumber?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerAddrTaxNumber by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryCountry /// key: TaxIdType /// response body for entity type CustomerAddrTaxNumber /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerAddrTaxNumber(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryCountry= '', TaxIdType= '')Async(System.Collections.Generic.IEnumerable < Anonymous347 > select, string customerId, string addressId, string company, string supplyCountry, string deliveryCountry, string taxIdType) { return ReferenceCustomerAddrTaxNumber(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', DeliveryCountry = '', TaxIdType = '')Async(select, customerId, addressId, company, supplyCountry, deliveryCountry, taxIdType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerAddrTaxNumber by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryCountry /// key: TaxIdType /// response body for entity type CustomerAddrTaxNumber /// A server side error occurred. public virtual CustomerAddrTaxNumber ReferenceCustomerAddrTaxNumber(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryCountry= '', TaxIdType= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string company, string supplyCountry, string deliveryCountry, string taxIdType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerAddrTaxNumber(CustomerId = '', AddressId = '', Company = '', SupplyCountry = '', DeliveryCountry = '', TaxIdType = '')Async(select, customerId, addressId, company, supplyCountry, deliveryCountry, taxIdType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerAddrTaxNumber by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: Company /// key: SupplyCountry /// key: DeliveryCountry /// key: TaxIdType /// response body for entity type CustomerAddrTaxNumber /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerAddrTaxNumber(CustomerId= '', AddressId= '', Company= '', SupplyCountry= '', DeliveryCountry= '', TaxIdType= '')Async(System.Collections.Generic.IEnumerable < Anonymous347 > select, string customerId, string addressId, string company, string supplyCountry, string deliveryCountry, string taxIdType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (company == null) throw new System.ArgumentNullException("company"); if (supplyCountry == null) throw new System.ArgumentNullException("supplyCountry"); if (deliveryCountry == null) throw new System.ArgumentNullException("deliveryCountry"); if (taxIdType == null) throw new System.ArgumentNullException("taxIdType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerAddrTaxNumber(CustomerId='{CustomerId}',AddressId='{AddressId}',Company='{Company}',SupplyCountry='{SupplyCountry}',DeliveryCountry='{DeliveryCountry}',TaxIdType='{TaxIdType}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SupplyCountry}", System.Uri.EscapeDataString(ConvertToString(supplyCountry, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{DeliveryCountry}", System.Uri.EscapeDataString(ConvertToString(deliveryCountry, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{TaxIdType}", System.Uri.EscapeDataString(ConvertToString(taxIdType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_JsCustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array JsCustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceJsCustomerInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceJsCustomerInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_JsCustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array JsCustomerInfo /// A server side error occurred. public virtual Response113 ReferenceJsCustomerInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceJsCustomerInfoAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_JsCustomerInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array JsCustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceJsCustomerInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_JsCustomerInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_JsCustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CustomerId /// response body for entity type JsCustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceJsCustomerInfo(Company= '', CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous350 > select, string company, string customerId) { return ReferenceJsCustomerInfo(Company = '', CustomerId = '')Async(select, company, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_JsCustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CustomerId /// response body for entity type JsCustomerInfo /// A server side error occurred. public virtual JsCustomerInfo ReferenceJsCustomerInfo(Company= '', CustomerId= '')(System.Collections.Generic.IEnumerable select, string company, string customerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceJsCustomerInfo(Company = '', CustomerId = '')Async(select, company, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_JsCustomerInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CustomerId /// response body for entity type JsCustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceJsCustomerInfo(Company= '', CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous350 > select, string company, string customerId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_JsCustomerInfo(Company='{Company}',CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_IdentityInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityInvoiceInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceIdentityInvoiceInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_IdentityInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual Response114 ReferenceIdentityInvoiceInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityInvoiceInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_IdentityInvoiceInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityInvoiceInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityInvoiceInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_IdentityInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityInvoiceInfo(Company= '', Identity= '', PartyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous354 > select, string company, string identity, string partyType) { return ReferenceIdentityInvoiceInfo(Company = '', Identity = '', PartyType = '')Async(select, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_IdentityInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual IdentityInvoiceInfo ReferenceIdentityInvoiceInfo(Company= '', Identity= '', PartyType= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityInvoiceInfo(Company = '', Identity = '', PartyType = '')Async(select, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_IdentityInvoiceInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityInvoiceInfo(Company= '', Identity= '', PartyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous354 > select, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityInvoiceInfo(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PartyTypeIdProperty /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PartyTypeIdProperty /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeIdPropertyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferencePartyTypeIdPropertyAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PartyTypeIdProperty /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PartyTypeIdProperty /// A server side error occurred. public virtual Response115 ReferencePartyTypeIdProperty(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeIdPropertyAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PartyTypeIdProperty /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PartyTypeIdProperty /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeIdPropertyAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeIdProperty?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PartyTypeIdProperty by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: Code /// response body for entity type PartyTypeIdProperty /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePartyTypeIdProperty(Company= '', Identity= '', PartyType= '', Code= '')Async(System.Collections.Generic.IEnumerable < Anonymous358 > select, string company, string identity, string partyType, string code) { return ReferencePartyTypeIdProperty(Company = '', Identity = '', PartyType = '', Code = '')Async(select, company, identity, partyType, code, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PartyTypeIdProperty by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: Code /// response body for entity type PartyTypeIdProperty /// A server side error occurred. public virtual PartyTypeIdProperty ReferencePartyTypeIdProperty(Company= '', Identity= '', PartyType= '', Code= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string partyType, string code) { return System.Threading.Tasks.Task.Run(async () => await ReferencePartyTypeIdProperty(Company = '', Identity = '', PartyType = '', Code = '')Async(select, company, identity, partyType, code, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PartyTypeIdProperty by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: Code /// response body for entity type PartyTypeIdProperty /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePartyTypeIdProperty(Company= '', Identity= '', PartyType= '', Code= '')Async(System.Collections.Generic.IEnumerable < Anonymous358 > select, string company, string identity, string partyType, string code, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (code == null) throw new System.ArgumentNullException("code"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PartyTypeIdProperty(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}',Code='{Code}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Code}", System.Uri.EscapeDataString(ConvertToString(code, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInvMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInvMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInvMsgSetupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInvMsgSetupAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInvMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInvMsgSetup /// A server side error occurred. public virtual Response116 ReferenceCustomerInvMsgSetup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInvMsgSetupAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInvMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInvMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInvMsgSetupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInvMsgSetup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInvMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// key: PartyType /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInvMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInvMsgSetup(CustomerId= '', Company= '', PartyType= '', MediaCode= '', MessageClass= '')Async(System.Collections.Generic.IEnumerable < Anonymous362 > select, string customerId, string company, string partyType, string mediaCode, string messageClass) { return ReferenceCustomerInvMsgSetup(CustomerId = '', Company = '', PartyType = '', MediaCode = '', MessageClass = '')Async(select, customerId, company, partyType, mediaCode, messageClass, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInvMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// key: PartyType /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInvMsgSetup /// A server side error occurred. public virtual CustomerInvMsgSetup ReferenceCustomerInvMsgSetup(CustomerId= '', Company= '', PartyType= '', MediaCode= '', MessageClass= '')(System.Collections.Generic.IEnumerable select, string customerId, string company, string partyType, string mediaCode, string messageClass) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInvMsgSetup(CustomerId = '', Company = '', PartyType = '', MediaCode = '', MessageClass = '')Async(select, customerId, company, partyType, mediaCode, messageClass, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInvMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// key: PartyType /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInvMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInvMsgSetup(CustomerId= '', Company= '', PartyType= '', MediaCode= '', MessageClass= '')Async(System.Collections.Generic.IEnumerable < Anonymous362 > select, string customerId, string company, string partyType, string mediaCode, string messageClass, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); if (messageClass == null) throw new System.ArgumentNullException("messageClass"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInvMsgSetup(CustomerId='{CustomerId}',Company='{Company}',PartyType='{PartyType}',MediaCode='{MediaCode}',MessageClass='{MessageClass}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageClass}", System.Uri.EscapeDataString(ConvertToString(messageClass, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MessageClass /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageClass /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageClassAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMessageClassAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MessageClass /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageClass /// A server side error occurred. public virtual Response117 ReferenceMessageClass(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageClassAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MessageClass /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageClass /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageClassAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageClass?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MessageClass by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ClassId /// response body for entity type MessageClass /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageClass(ClassId= '')Async(System.Collections.Generic.IEnumerable < Anonymous365 > select, string classId) { return ReferenceMessageClass(ClassId = '')Async(select, classId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MessageClass by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ClassId /// response body for entity type MessageClass /// A server side error occurred. public virtual MessageClass ReferenceMessageClass(ClassId= '')(System.Collections.Generic.IEnumerable select, string classId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageClass(ClassId = '')Async(select, classId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MessageClass by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ClassId /// response body for entity type MessageClass /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageClass(ClassId= '')Async(System.Collections.Generic.IEnumerable < Anonymous365 > select, string classId, System.Threading.CancellationToken cancellationToken) { if (classId == null) throw new System.ArgumentNullException("classId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageClass(ClassId='{ClassId}')?"); urlBuilder_.Replace("{ClassId}", System.Uri.EscapeDataString(ConvertToString(classId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MessageMedia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageMedia /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageMediaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMessageMediaAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MessageMedia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageMedia /// A server side error occurred. public virtual Response118 ReferenceMessageMedia(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageMediaAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MessageMedia /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageMedia /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageMediaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageMedia?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MessageMedia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MediaCode /// response body for entity type MessageMedia /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageMedia(MediaCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous368 > select, string mediaCode) { return ReferenceMessageMedia(MediaCode = '')Async(select, mediaCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MessageMedia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MediaCode /// response body for entity type MessageMedia /// A server side error occurred. public virtual MessageMedia ReferenceMessageMedia(MediaCode= '')(System.Collections.Generic.IEnumerable select, string mediaCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageMedia(MediaCode = '')Async(select, mediaCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MessageMedia by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: MediaCode /// response body for entity type MessageMedia /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageMedia(MediaCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous368 > select, string mediaCode, System.Threading.CancellationToken cancellationToken) { if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageMedia(MediaCode='{MediaCode}')?"); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MessageReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceMessageReceiverAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MessageReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageReceiver /// A server side error occurred. public virtual Response119 ReferenceMessageReceiver(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageReceiverAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MessageReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array MessageReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageReceiver?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MessageReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Receiver /// response body for entity type MessageReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMessageReceiver(Receiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous371 > select, string receiver) { return ReferenceMessageReceiver(Receiver = '')Async(select, receiver, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MessageReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Receiver /// response body for entity type MessageReceiver /// A server side error occurred. public virtual MessageReceiver ReferenceMessageReceiver(Receiver= '')(System.Collections.Generic.IEnumerable select, string receiver) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMessageReceiver(Receiver = '')Async(select, receiver, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MessageReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Receiver /// response body for entity type MessageReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMessageReceiver(Receiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous371 > select, string receiver, System.Threading.CancellationToken cancellationToken) { if (receiver == null) throw new System.ArgumentNullException("receiver"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MessageReceiver(Receiver='{Receiver}')?"); urlBuilder_.Replace("{Receiver}", System.Uri.EscapeDataString(ConvertToString(receiver, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_LanguageCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array LanguageCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceLanguageCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceLanguageCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_LanguageCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array LanguageCode /// A server side error occurred. public virtual Response120 ReferenceLanguageCode(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceLanguageCodeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_LanguageCode /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array LanguageCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceLanguageCodeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_LanguageCode?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_LanguageCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LangCode /// response body for entity type LanguageCode /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceLanguageCode(LangCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous374 > select, string langCode) { return ReferenceLanguageCode(LangCode = '')Async(select, langCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_LanguageCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LangCode /// response body for entity type LanguageCode /// A server side error occurred. public virtual LanguageCode ReferenceLanguageCode(LangCode= '')(System.Collections.Generic.IEnumerable select, string langCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceLanguageCode(LangCode = '')Async(select, langCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_LanguageCode by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: LangCode /// response body for entity type LanguageCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceLanguageCode(LangCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous374 > select, string langCode, System.Threading.CancellationToken cancellationToken) { if (langCode == null) throw new System.ArgumentNullException("langCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_LanguageCode(LangCode='{LangCode}')?"); urlBuilder_.Replace("{LangCode}", System.Uri.EscapeDataString(ConvertToString(langCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_IdentityPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityPayInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceIdentityPayInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_IdentityPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual Response121 ReferenceIdentityPayInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityPayInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_IdentityPayInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityPayInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityPayInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_IdentityPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceIdentityPayInfo(Company= '', Identity= '', PartyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous378 > select, string company, string identity, string partyType) { return ReferenceIdentityPayInfo(Company = '', Identity = '', PartyType = '')Async(select, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_IdentityPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual IdentityPayInfo ReferenceIdentityPayInfo(Company= '', Identity= '', PartyType= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceIdentityPayInfo(Company = '', Identity = '', PartyType = '')Async(select, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_IdentityPayInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceIdentityPayInfo(Company= '', Identity= '', PartyType= '')Async(System.Collections.Generic.IEnumerable < Anonymous378 > select, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_IdentityPayInfo(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CompanyFinance /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyFinance /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyFinanceAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCompanyFinanceAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CompanyFinance /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyFinance /// A server side error occurred. public virtual Response122 ReferenceCompanyFinance(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyFinanceAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CompanyFinance /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CompanyFinance /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyFinanceAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyFinance?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CompanyFinance by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyFinance /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCompanyFinance(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous381 > select, string company) { return ReferenceCompanyFinance(Company = '')Async(select, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CompanyFinance by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyFinance /// A server side error occurred. public virtual CompanyFinance ReferenceCompanyFinance(Company= '')(System.Collections.Generic.IEnumerable select, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCompanyFinance(Company = '')Async(select, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CompanyFinance by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// response body for entity type CompanyFinance /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCompanyFinance(Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous381 > select, string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CompanyFinance(Company='{Company}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PaymentWayPerIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PaymentWayPerIdentity /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayPerIdentityAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferencePaymentWayPerIdentityAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PaymentWayPerIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PaymentWayPerIdentity /// A server side error occurred. public virtual Response123 ReferencePaymentWayPerIdentity(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayPerIdentityAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PaymentWayPerIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array PaymentWayPerIdentity /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayPerIdentityAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayPerIdentity?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PaymentWayPerIdentity by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// response body for entity type PaymentWayPerIdentity /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentWayPerIdentity(Company= '', Identity= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous385 > select, string company, string identity, string partyType, string wayId) { return ReferencePaymentWayPerIdentity(Company = '', Identity = '', PartyType = '', WayId = '')Async(select, company, identity, partyType, wayId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PaymentWayPerIdentity by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// response body for entity type PaymentWayPerIdentity /// A server side error occurred. public virtual PaymentWayPerIdentity ReferencePaymentWayPerIdentity(Company= '', Identity= '', PartyType= '', WayId= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string partyType, string wayId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentWayPerIdentity(Company = '', Identity = '', PartyType = '', WayId = '')Async(select, company, identity, partyType, wayId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PaymentWayPerIdentity by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// response body for entity type PaymentWayPerIdentity /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentWayPerIdentity(Company= '', Identity= '', PartyType= '', WayId= '')Async(System.Collections.Generic.IEnumerable < Anonymous385 > select, string company, string identity, string partyType, string wayId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (wayId == null) throw new System.ArgumentNullException("wayId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentWayPerIdentity(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}',WayId='{WayId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{WayId}", System.Uri.EscapeDataString(ConvertToString(wayId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_PaymentAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferencePaymentAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_PaymentAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentAddress /// A server side error occurred. public virtual Response124 ReferencePaymentAddress(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_PaymentAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array PaymentAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentAddress?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_PaymentAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// key: AddressId /// response body for entity type PaymentAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferencePaymentAddress(Company= '', Identity= '', PartyType= '', WayId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous388 > select, string company, string identity, string partyType, string wayId, string addressId) { return ReferencePaymentAddress(Company = '', Identity = '', PartyType = '', WayId = '', AddressId = '')Async(select, company, identity, partyType, wayId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_PaymentAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// key: AddressId /// response body for entity type PaymentAddress /// A server side error occurred. public virtual PaymentAddress ReferencePaymentAddress(Company= '', Identity= '', PartyType= '', WayId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string partyType, string wayId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferencePaymentAddress(Company = '', Identity = '', PartyType = '', WayId = '', AddressId = '')Async(select, company, identity, partyType, wayId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_PaymentAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// key: WayId /// key: AddressId /// response body for entity type PaymentAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferencePaymentAddress(Company= '', Identity= '', PartyType= '', WayId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous388 > select, string company, string identity, string partyType, string wayId, string addressId, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (wayId == null) throw new System.ArgumentNullException("wayId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_PaymentAddress(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}',WayId='{WayId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{WayId}", System.Uri.EscapeDataString(ConvertToString(wayId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerCreditInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerCreditInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerCreditInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual Response125 ReferenceCustomerCreditInfo(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditInfoAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerCreditInfo /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditInfoAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditInfo?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerCreditInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCreditInfo(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous392 > select, string company, string identity) { return ReferenceCustomerCreditInfo(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerCreditInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual CustomerCreditInfo ReferenceCustomerCreditInfo(Company= '', Identity= '')(System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCreditInfo(Company = '', Identity = '')Async(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerCreditInfo by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCreditInfo(Company= '', Identity= '')Async(System.Collections.Generic.IEnumerable < Anonymous392 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCreditInfo(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CreditAnalyst /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditAnalyst /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditAnalystAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCreditAnalystAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CreditAnalyst /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditAnalyst /// A server side error occurred. public virtual Response126 ReferenceCreditAnalyst(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditAnalystAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CreditAnalyst /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CreditAnalyst /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditAnalystAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditAnalyst?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CreditAnalyst by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CreditAnalystCode /// response body for entity type CreditAnalyst /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditAnalyst(Company= '', CreditAnalystCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous395 > select, string company, string creditAnalystCode) { return ReferenceCreditAnalyst(Company = '', CreditAnalystCode = '')Async(select, company, creditAnalystCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CreditAnalyst by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CreditAnalystCode /// response body for entity type CreditAnalyst /// A server side error occurred. public virtual CreditAnalyst ReferenceCreditAnalyst(Company= '', CreditAnalystCode= '')(System.Collections.Generic.IEnumerable select, string company, string creditAnalystCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditAnalyst(Company = '', CreditAnalystCode = '')Async(select, company, creditAnalystCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CreditAnalyst by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: CreditAnalystCode /// response body for entity type CreditAnalyst /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditAnalyst(Company= '', CreditAnalystCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous395 > select, string company, string creditAnalystCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (creditAnalystCode == null) throw new System.ArgumentNullException("creditAnalystCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditAnalyst(Company='{Company}',CreditAnalystCode='{CreditAnalystCode}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CreditAnalystCode}", System.Uri.EscapeDataString(ConvertToString(creditAnalystCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CreditRelationship /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CreditRelationship /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditRelationshipAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCreditRelationshipAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CreditRelationship /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CreditRelationship /// A server side error occurred. public virtual Response127 ReferenceCreditRelationship(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditRelationshipAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CreditRelationship /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CreditRelationship /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditRelationshipAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditRelationship?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CreditRelationship by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCreditRelationship(Company= '', Identity= '', ChildCompany= '', ChildIdentity= '')Async(System.Collections.Generic.IEnumerable < Anonymous399 > select, string company, string identity, string childCompany, string childIdentity) { return ReferenceCreditRelationship(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')Async(select, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CreditRelationship by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual CreditRelationship ReferenceCreditRelationship(Company= '', Identity= '', ChildCompany= '', ChildIdentity= '')(System.Collections.Generic.IEnumerable select, string company, string identity, string childCompany, string childIdentity) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCreditRelationship(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')Async(select, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CreditRelationship by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCreditRelationship(Company= '', Identity= '', ChildCompany= '', ChildIdentity= '')Async(System.Collections.Generic.IEnumerable < Anonymous399 > select, string company, string identity, string childCompany, string childIdentity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childIdentity == null) throw new System.ArgumentNullException("childIdentity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CreditRelationship(Company='{Company}',Identity='{Identity}',ChildCompany='{ChildCompany}',ChildIdentity='{ChildIdentity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildIdentity}", System.Uri.EscapeDataString(ConvertToString(childIdentity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_BusObjectRepresentative /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusObjectRepresentativeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceBusObjectRepresentativeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_BusObjectRepresentative /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual Response128 ReferenceBusObjectRepresentative(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusObjectRepresentativeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_BusObjectRepresentative /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusObjectRepresentativeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusObjectRepresentative?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_BusObjectRepresentative by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceBusObjectRepresentative(BusinessObjectId= '', BusinessObjectType= '', RepresentativeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous403 > select, string businessObjectId, string businessObjectType, string representativeId) { return ReferenceBusObjectRepresentative(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')Async(select, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_BusObjectRepresentative by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual BusObjectRepresentative ReferenceBusObjectRepresentative(BusinessObjectId= '', BusinessObjectType= '', RepresentativeId= '')(System.Collections.Generic.IEnumerable select, string businessObjectId, string businessObjectType, string representativeId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceBusObjectRepresentative(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')Async(select, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_BusObjectRepresentative by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceBusObjectRepresentative(BusinessObjectId= '', BusinessObjectType= '', RepresentativeId= '')Async(System.Collections.Generic.IEnumerable < Anonymous403 > select, string businessObjectId, string businessObjectType, string representativeId, System.Threading.CancellationToken cancellationToken) { if (businessObjectId == null) throw new System.ArgumentNullException("businessObjectId"); if (businessObjectType == null) throw new System.ArgumentNullException("businessObjectType"); if (representativeId == null) throw new System.ArgumentNullException("representativeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_BusObjectRepresentative(BusinessObjectId='{BusinessObjectId}',BusinessObjectType='{BusinessObjectType}',RepresentativeId='{RepresentativeId}')?"); urlBuilder_.Replace("{BusinessObjectId}", System.Uri.EscapeDataString(ConvertToString(businessObjectId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectType}", System.Uri.EscapeDataString(ConvertToString(businessObjectType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{RepresentativeId}", System.Uri.EscapeDataString(ConvertToString(representativeId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CrmCompanyRelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCompanyRelationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCrmCompanyRelationAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CrmCompanyRelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual Response129 ReferenceCrmCompanyRelation(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCompanyRelationAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CrmCompanyRelation /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCompanyRelationAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCompanyRelation?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CrmCompanyRelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCrmCompanyRelation(ChildCompany= '', ChildCategory= '')Async(System.Collections.Generic.IEnumerable < Anonymous407 > select, string childCompany, string childCategory) { return ReferenceCrmCompanyRelation(ChildCompany = '', ChildCategory = '')Async(select, childCompany, childCategory, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CrmCompanyRelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual CrmCompanyRelation ReferenceCrmCompanyRelation(ChildCompany= '', ChildCategory= '')(System.Collections.Generic.IEnumerable select, string childCompany, string childCategory) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCrmCompanyRelation(ChildCompany = '', ChildCategory = '')Async(select, childCompany, childCategory, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CrmCompanyRelation by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCrmCompanyRelation(ChildCompany= '', ChildCategory= '')Async(System.Collections.Generic.IEnumerable < Anonymous407 > select, string childCompany, string childCategory, System.Threading.CancellationToken cancellationToken) { if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childCategory == null) throw new System.ArgumentNullException("childCategory"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CrmCompanyRelation(ChildCompany='{ChildCompany}',ChildCategory='{ChildCategory}')?"); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCategory}", System.Uri.EscapeDataString(ConvertToString(childCategory, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustOrdCustomerAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomerAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCustomerAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustOrdCustomerAddressAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustOrdCustomerAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomerAddress /// A server side error occurred. public virtual Response130 ReferenceCustOrdCustomerAddress(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCustomerAddressAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustOrdCustomerAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomerAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCustomerAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCustomerAddress?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustOrdCustomerAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustOrdCustomerAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustOrdCustomerAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous411 > select, string customerId, string addressId) { return ReferenceCustOrdCustomerAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustOrdCustomerAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustOrdCustomerAddress /// A server side error occurred. public virtual CustOrdCustomerAddress ReferenceCustOrdCustomerAddress(CustomerId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustOrdCustomerAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustOrdCustomerAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustOrdCustomerAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustOrdCustomerAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous411 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustOrdCustomerAddress(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_DocumentText /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDocumentTextAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceDocumentTextAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_DocumentText /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array DocumentText /// A server side error occurred. public virtual Response131 ReferenceDocumentText(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDocumentTextAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_DocumentText /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDocumentTextAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DocumentText?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_DocumentText by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceDocumentText(OutputType= '', NoteId=)Async(System.Collections.Generic.IEnumerable < Anonymous415 > select, string outputType, double noteId) { return ReferenceDocumentText(OutputType = '', NoteId =)Async(select, outputType, noteId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_DocumentText by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual DocumentText ReferenceDocumentText(OutputType= '', NoteId=)(System.Collections.Generic.IEnumerable select, string outputType, double noteId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceDocumentText(OutputType = '', NoteId =)Async(select, outputType, noteId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_DocumentText by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceDocumentText(OutputType= '', NoteId=)Async(System.Collections.Generic.IEnumerable < Anonymous415 > select, string outputType, double noteId, System.Threading.CancellationToken cancellationToken) { if (outputType == null) throw new System.ArgumentNullException("outputType"); if (noteId == null) throw new System.ArgumentNullException("noteId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_DocumentText(OutputType='{OutputType}',NoteId={NoteId})?"); urlBuilder_.Replace("{OutputType}", System.Uri.EscapeDataString(ConvertToString(outputType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NoteId}", System.Uri.EscapeDataString(ConvertToString(noteId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerTaxCalcBasis /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxCalcBasisAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerTaxCalcBasisAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerTaxCalcBasis /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual Response132 ReferenceCustomerTaxCalcBasis(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxCalcBasisAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerTaxCalcBasis /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxCalcBasisAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxCalcBasis?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerTaxCalcBasis by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxCalcBasis(CustomerNo= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous419 > select, string customerNo, string company) { return ReferenceCustomerTaxCalcBasis(CustomerNo = '', Company = '')Async(select, customerNo, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerTaxCalcBasis by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual CustomerTaxCalcBasis ReferenceCustomerTaxCalcBasis(CustomerNo= '', Company= '')(System.Collections.Generic.IEnumerable select, string customerNo, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxCalcBasis(CustomerNo = '', Company = '')Async(select, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerTaxCalcBasis by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxCalcBasis(CustomerNo= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous419 > select, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxCalcBasis(CustomerNo='{CustomerNo}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustInvoiceCloseDate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustInvoiceCloseDateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustInvoiceCloseDateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustInvoiceCloseDate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual Response133 ReferenceCustInvoiceCloseDate(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustInvoiceCloseDateAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustInvoiceCloseDate /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustInvoiceCloseDateAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustInvoiceCloseDate?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustInvoiceCloseDate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustInvoiceCloseDate(CustomerNo= '', LineNo=)Async(System.Collections.Generic.IEnumerable < Anonymous422 > select, string customerNo, double lineNo) { return ReferenceCustInvoiceCloseDate(CustomerNo = '', LineNo =)Async(select, customerNo, lineNo, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustInvoiceCloseDate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual CustInvoiceCloseDate ReferenceCustInvoiceCloseDate(CustomerNo= '', LineNo=)(System.Collections.Generic.IEnumerable select, string customerNo, double lineNo) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustInvoiceCloseDate(CustomerNo = '', LineNo =)Async(select, customerNo, lineNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustInvoiceCloseDate by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustInvoiceCloseDate(CustomerNo= '', LineNo=)Async(System.Collections.Generic.IEnumerable < Anonymous422 > select, string customerNo, double lineNo, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (lineNo == null) throw new System.ArgumentNullException("lineNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustInvoiceCloseDate(CustomerNo='{CustomerNo}',LineNo={LineNo})?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{LineNo}", System.Uri.EscapeDataString(ConvertToString(lineNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_MultipleRebateCriteria /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMultipleRebateCriteriaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceMultipleRebateCriteriaAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_MultipleRebateCriteria /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual Response134 ReferenceMultipleRebateCriteria(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMultipleRebateCriteriaAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_MultipleRebateCriteria /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMultipleRebateCriteriaAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MultipleRebateCriteria?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_MultipleRebateCriteria by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceMultipleRebateCriteria(CustomerNo= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous426 > select, string customerNo, string company) { return ReferenceMultipleRebateCriteria(CustomerNo = '', Company = '')Async(select, customerNo, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_MultipleRebateCriteria by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual MultipleRebateCriteria ReferenceMultipleRebateCriteria(CustomerNo= '', Company= '')(System.Collections.Generic.IEnumerable select, string customerNo, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceMultipleRebateCriteria(CustomerNo = '', Company = '')Async(select, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_MultipleRebateCriteria by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceMultipleRebateCriteria(CustomerNo= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous426 > select, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_MultipleRebateCriteria(CustomerNo='{CustomerNo}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerPricelist /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerPricelistAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerPricelistAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerPricelist /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual Response135 ReferenceCustomerPricelist(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerPricelistAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerPricelist /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerPricelistAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerPricelist?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerPricelist by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerPricelist(SalesPriceGroupId= '', CurrencyCode= '', CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous430 > select, string salesPriceGroupId, string currencyCode, string customerId) { return ReferenceCustomerPricelist(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')Async(select, salesPriceGroupId, currencyCode, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerPricelist by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual CustomerPricelist ReferenceCustomerPricelist(SalesPriceGroupId= '', CurrencyCode= '', CustomerId= '')(System.Collections.Generic.IEnumerable select, string salesPriceGroupId, string currencyCode, string customerId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerPricelist(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')Async(select, salesPriceGroupId, currencyCode, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerPricelist by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerPricelist(SalesPriceGroupId= '', CurrencyCode= '', CustomerId= '')Async(System.Collections.Generic.IEnumerable < Anonymous430 > select, string salesPriceGroupId, string currencyCode, string customerId, System.Threading.CancellationToken cancellationToken) { if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerPricelist(SalesPriceGroupId='{SalesPriceGroupId}',CurrencyCode='{CurrencyCode}',CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustDefComReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustDefComReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustDefComReceiverAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustDefComReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual Response136 ReferenceCustDefComReceiver(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustDefComReceiverAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustDefComReceiver /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustDefComReceiverAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustDefComReceiver?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustDefComReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustDefComReceiver(CustomerNo= '', CommissionReceiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous434 > select, string customerNo, string commissionReceiver) { return ReferenceCustDefComReceiver(CustomerNo = '', CommissionReceiver = '')Async(select, customerNo, commissionReceiver, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustDefComReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual CustDefComReceiver ReferenceCustDefComReceiver(CustomerNo= '', CommissionReceiver= '')(System.Collections.Generic.IEnumerable select, string customerNo, string commissionReceiver) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustDefComReceiver(CustomerNo = '', CommissionReceiver = '')Async(select, customerNo, commissionReceiver, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustDefComReceiver by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustDefComReceiver(CustomerNo= '', CommissionReceiver= '')Async(System.Collections.Generic.IEnumerable < Anonymous434 > select, string customerNo, string commissionReceiver, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (commissionReceiver == null) throw new System.ArgumentNullException("commissionReceiver"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustDefComReceiver(CustomerNo='{CustomerNo}',CommissionReceiver='{CommissionReceiver}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommissionReceiver}", System.Uri.EscapeDataString(ConvertToString(commissionReceiver, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerCharge /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerChargeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerChargeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerCharge /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCharge /// A server side error occurred. public virtual Response137 ReferenceCustomerCharge(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerChargeAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerCharge /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerChargeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCharge?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerCharge by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerCharge(CustomerId= '', Contract= '', ChargeType= '')Async(System.Collections.Generic.IEnumerable < Anonymous438 > select, string customerId, string contract, string chargeType) { return ReferenceCustomerCharge(CustomerId = '', Contract = '', ChargeType = '')Async(select, customerId, contract, chargeType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerCharge by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual CustomerCharge ReferenceCustomerCharge(CustomerId= '', Contract= '', ChargeType= '')(System.Collections.Generic.IEnumerable select, string customerId, string contract, string chargeType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerCharge(CustomerId = '', Contract = '', ChargeType = '')Async(select, customerId, contract, chargeType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerCharge by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerCharge(CustomerId= '', Contract= '', ChargeType= '')Async(System.Collections.Generic.IEnumerable < Anonymous438 > select, string customerId, string contract, string chargeType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (contract == null) throw new System.ArgumentNullException("contract"); if (chargeType == null) throw new System.ArgumentNullException("chargeType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerCharge(CustomerId='{CustomerId}',Contract='{Contract}',ChargeType='{ChargeType}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FrtCustomerAccount /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCustomerAccountAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceFrtCustomerAccountAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FrtCustomerAccount /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual Response138 ReferenceFrtCustomerAccount(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCustomerAccountAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FrtCustomerAccount /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCustomerAccountAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCustomerAccount?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FrtCustomerAccount by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCustomerAccount(CustomerId= '', CarrierAccountId=)Async(System.Collections.Generic.IEnumerable < Anonymous442 > select, string customerId, double carrierAccountId) { return ReferenceFrtCustomerAccount(CustomerId = '', CarrierAccountId =)Async(select, customerId, carrierAccountId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FrtCustomerAccount by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual FrtCustomerAccount ReferenceFrtCustomerAccount(CustomerId= '', CarrierAccountId=)(System.Collections.Generic.IEnumerable select, string customerId, double carrierAccountId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCustomerAccount(CustomerId = '', CarrierAccountId =)Async(select, customerId, carrierAccountId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FrtCustomerAccount by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCustomerAccount(CustomerId= '', CarrierAccountId=)Async(System.Collections.Generic.IEnumerable < Anonymous442 > select, string customerId, double carrierAccountId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (carrierAccountId == null) throw new System.ArgumentNullException("carrierAccountId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCustomerAccount(CustomerId='{CustomerId}',CarrierAccountId={CarrierAccountId})?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CarrierAccountId}", System.Uri.EscapeDataString(ConvertToString(carrierAccountId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FrtCarrier /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCarrier /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCarrierAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceFrtCarrierAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FrtCarrier /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCarrier /// A server side error occurred. public virtual Response139 ReferenceFrtCarrier(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCarrierAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FrtCarrier /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCarrier /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCarrierAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCarrier?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FrtCarrier by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CarrierId /// response body for entity type FrtCarrier /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCarrier(CarrierId= '')Async(System.Collections.Generic.IEnumerable < Anonymous445 > select, string carrierId) { return ReferenceFrtCarrier(CarrierId = '')Async(select, carrierId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FrtCarrier by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CarrierId /// response body for entity type FrtCarrier /// A server side error occurred. public virtual FrtCarrier ReferenceFrtCarrier(CarrierId= '')(System.Collections.Generic.IEnumerable select, string carrierId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCarrier(CarrierId = '')Async(select, carrierId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FrtCarrier by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CarrierId /// response body for entity type FrtCarrier /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCarrier(CarrierId= '')Async(System.Collections.Generic.IEnumerable < Anonymous445 > select, string carrierId, System.Threading.CancellationToken cancellationToken) { if (carrierId == null) throw new System.ArgumentNullException("carrierId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCarrier(CarrierId='{CarrierId}')?"); urlBuilder_.Replace("{CarrierId}", System.Uri.EscapeDataString(ConvertToString(carrierId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoAddressAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual Response140 ReferenceCustomerInfoAddress(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddressAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddress?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous449 > select, string customerId, string addressId) { return ReferenceCustomerInfoAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual CustomerInfoAddress ReferenceCustomerInfoAddress(CustomerId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous449 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddress(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FrtThirdPartyPayer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtThirdPartyPayerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceFrtThirdPartyPayerAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FrtThirdPartyPayer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual Response141 ReferenceFrtThirdPartyPayer(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtThirdPartyPayerAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FrtThirdPartyPayer /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtThirdPartyPayerAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtThirdPartyPayer?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FrtThirdPartyPayer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtThirdPartyPayer(CustomerId= '', ThirdPartyId=)Async(System.Collections.Generic.IEnumerable < Anonymous453 > select, string customerId, double thirdPartyId) { return ReferenceFrtThirdPartyPayer(CustomerId = '', ThirdPartyId =)Async(select, customerId, thirdPartyId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FrtThirdPartyPayer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual FrtThirdPartyPayer ReferenceFrtThirdPartyPayer(CustomerId= '', ThirdPartyId=)(System.Collections.Generic.IEnumerable select, string customerId, double thirdPartyId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtThirdPartyPayer(CustomerId = '', ThirdPartyId =)Async(select, customerId, thirdPartyId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FrtThirdPartyPayer by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtThirdPartyPayer(CustomerId= '', ThirdPartyId=)Async(System.Collections.Generic.IEnumerable < Anonymous453 > select, string customerId, double thirdPartyId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (thirdPartyId == null) throw new System.ArgumentNullException("thirdPartyId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtThirdPartyPayer(CustomerId='{CustomerId}',ThirdPartyId={ThirdPartyId})?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ThirdPartyId}", System.Uri.EscapeDataString(ConvertToString(thirdPartyId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerTaxUsageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxUsageTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerTaxUsageTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerTaxUsageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual Response142 ReferenceCustomerTaxUsageType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxUsageTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerTaxUsageType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxUsageTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxUsageType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerTaxUsageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerTaxUsageType /// response body for entity type CustomerTaxUsageType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerTaxUsageType(CustomerTaxUsageType= '')Async(System.Collections.Generic.IEnumerable < Anonymous456 > select, string customerTaxUsageType) { return ReferenceCustomerTaxUsageType(CustomerTaxUsageType = '')Async(select, customerTaxUsageType, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerTaxUsageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerTaxUsageType /// response body for entity type CustomerTaxUsageType /// A server side error occurred. public virtual CustomerTaxUsageType ReferenceCustomerTaxUsageType(CustomerTaxUsageType= '')(System.Collections.Generic.IEnumerable select, string customerTaxUsageType) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerTaxUsageType(CustomerTaxUsageType = '')Async(select, customerTaxUsageType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerTaxUsageType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerTaxUsageType /// response body for entity type CustomerTaxUsageType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerTaxUsageType(CustomerTaxUsageType= '')Async(System.Collections.Generic.IEnumerable < Anonymous456 > select, string customerTaxUsageType, System.Threading.CancellationToken cancellationToken) { if (customerTaxUsageType == null) throw new System.ArgumentNullException("customerTaxUsageType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerTaxUsageType(CustomerTaxUsageType='{CustomerTaxUsageType}')?"); urlBuilder_.Replace("{CustomerTaxUsageType}", System.Uri.EscapeDataString(ConvertToString(customerTaxUsageType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoOurId /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoOurIdAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoOurIdAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoOurId /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual Response143 ReferenceCustomerInfoOurId(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoOurIdAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoOurId /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoOurIdAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoOurId?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoOurId by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoOurId(CustomerId= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous460 > select, string customerId, string company) { return ReferenceCustomerInfoOurId(CustomerId = '', Company = '')Async(select, customerId, company, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoOurId by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual CustomerInfoOurId ReferenceCustomerInfoOurId(CustomerId= '', Company= '')(System.Collections.Generic.IEnumerable select, string customerId, string company) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoOurId(CustomerId = '', Company = '')Async(select, customerId, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoOurId by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoOurId(CustomerId= '', Company= '')Async(System.Collections.Generic.IEnumerable < Anonymous460 > select, string customerId, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoOurId(CustomerId='{CustomerId}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoContactAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoContactAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual Response144 ReferenceCustomerInfoContact(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoContactAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoContact /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoContactAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoContact?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoContact(CustomerId= '', PersonId= '', Guid= '')Async(System.Collections.Generic.IEnumerable < Anonymous464 > select, string customerId, string personId, string guid) { return ReferenceCustomerInfoContact(CustomerId = '', PersonId = '', Guid = '')Async(select, customerId, personId, guid, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual CustomerInfoContact ReferenceCustomerInfoContact(CustomerId= '', PersonId= '', Guid= '')(System.Collections.Generic.IEnumerable select, string customerId, string personId, string guid) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoContact(CustomerId = '', PersonId = '', Guid = '')Async(select, customerId, personId, guid, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoContact by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoContact(CustomerId= '', PersonId= '', Guid= '')Async(System.Collections.Generic.IEnumerable < Anonymous464 > select, string customerId, string personId, string guid, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (personId == null) throw new System.ArgumentNullException("personId"); if (guid == null) throw new System.ArgumentNullException("guid"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoContact(CustomerId='{CustomerId}',PersonId='{PersonId}',Guid='{Guid}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Guid}", System.Uri.EscapeDataString(ConvertToString(guid, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoMsgSetupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ReferenceCustomerInfoMsgSetupAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual Response145 ReferenceCustomerInfoMsgSetup(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoMsgSetupAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoMsgSetup /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoMsgSetupAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoMsgSetup?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoMsgSetup(CustomerId= '', MediaCode= '', MessageClass= '')Async(System.Collections.Generic.IEnumerable < Anonymous468 > select, string customerId, string mediaCode, string messageClass) { return ReferenceCustomerInfoMsgSetup(CustomerId = '', MediaCode = '', MessageClass = '')Async(select, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual CustomerInfoMsgSetup ReferenceCustomerInfoMsgSetup(CustomerId= '', MediaCode= '', MessageClass= '')(System.Collections.Generic.IEnumerable select, string customerId, string mediaCode, string messageClass) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoMsgSetup(CustomerId = '', MediaCode = '', MessageClass = '')Async(select, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoMsgSetup by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoMsgSetup(CustomerId= '', MediaCode= '', MessageClass= '')Async(System.Collections.Generic.IEnumerable < Anonymous468 > select, string customerId, string mediaCode, string messageClass, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); if (messageClass == null) throw new System.ArgumentNullException("messageClass"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoMsgSetup(CustomerId='{CustomerId}',MediaCode='{MediaCode}',MessageClass='{MessageClass}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageClass}", System.Uri.EscapeDataString(ConvertToString(messageClass, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_CustomerInfoAddressType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddressTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceCustomerInfoAddressTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_CustomerInfoAddressType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressType /// A server side error occurred. public virtual Response146 ReferenceCustomerInfoAddressType(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddressTypeAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_CustomerInfoAddressType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array CustomerInfoAddressType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddressTypeAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddressType?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_CustomerInfoAddressType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: AddressTypeCode /// response body for entity type CustomerInfoAddressType /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceCustomerInfoAddressType(CustomerId= '', AddressId= '', AddressTypeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous471 > select, string customerId, string addressId, string addressTypeCode) { return ReferenceCustomerInfoAddressType(CustomerId = '', AddressId = '', AddressTypeCode = '')Async(select, customerId, addressId, addressTypeCode, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_CustomerInfoAddressType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: AddressTypeCode /// response body for entity type CustomerInfoAddressType /// A server side error occurred. public virtual CustomerInfoAddressType ReferenceCustomerInfoAddressType(CustomerId= '', AddressId= '', AddressTypeCode= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId, string addressTypeCode) { return System.Threading.Tasks.Task.Run(async () => await ReferenceCustomerInfoAddressType(CustomerId = '', AddressId = '', AddressTypeCode = '')Async(select, customerId, addressId, addressTypeCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_CustomerInfoAddressType by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// key: AddressTypeCode /// response body for entity type CustomerInfoAddressType /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceCustomerInfoAddressType(CustomerId= '', AddressId= '', AddressTypeCode= '')Async(System.Collections.Generic.IEnumerable < Anonymous471 > select, string customerId, string addressId, string addressTypeCode, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (addressTypeCode == null) throw new System.ArgumentNullException("addressTypeCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_CustomerInfoAddressType(CustomerId='{CustomerId}',AddressId='{AddressId}',AddressTypeCode='{AddressTypeCode}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressTypeCode}", System.Uri.EscapeDataString(ConvertToString(addressTypeCode, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Reference_FrtCustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCustomerInfoAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return ReferenceFrtCustomerInfoAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Reference_FrtCustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCustomerInfoAddress /// A server side error occurred. public virtual Response147 ReferenceFrtCustomerInfoAddress(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCustomerInfoAddressAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Reference_FrtCustomerInfoAddress /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array FrtCustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCustomerInfoAddressAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCustomerInfoAddress?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Reference_FrtCustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type FrtCustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task ReferenceFrtCustomerInfoAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous474 > select, string customerId, string addressId) { return ReferenceFrtCustomerInfoAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from Reference_FrtCustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type FrtCustomerInfoAddress /// A server side error occurred. public virtual FrtCustomerInfoAddress ReferenceFrtCustomerInfoAddress(CustomerId= '', AddressId= '')(System.Collections.Generic.IEnumerable select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await ReferenceFrtCustomerInfoAddress(CustomerId = '', AddressId = '')Async(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Reference_FrtCustomerInfoAddress by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type FrtCustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task ReferenceFrtCustomerInfoAddress(CustomerId= '', AddressId= '')Async(System.Collections.Generic.IEnumerable < Anonymous474 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reference_FrtCustomerInfoAddress(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Lookup_IsoCountry_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoCountryEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return LookupIsoCountryEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Lookup_IsoCountry_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual Response148 LookupIsoCountryEntitySet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoCountryEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Lookup_IsoCountry_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoCountryEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoCountry_EntitySet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Lookup_IsoCountry_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoCountryEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous477 > select, string id) { return LookupIsoCountryEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None); } /// /// Get entity from Lookup_IsoCountry_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual Lookup_IsoCountry_EntityType LookupIsoCountryEntitySet(Id= '')(System.Collections.Generic.IEnumerable select, string id) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoCountryEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Lookup_IsoCountry_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoCountry_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoCountryEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous477 > select, string id, System.Threading.CancellationToken cancellationToken) { if (id == null) throw new System.ArgumentNullException("id"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoCountry_EntitySet(Id='{Id}')?"); urlBuilder_.Replace("{Id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from Lookup_IsoUnit_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoUnitEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return LookupIsoUnitEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from Lookup_IsoUnit_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual Response149 LookupIsoUnitEntitySet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoUnitEntitySetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from Lookup_IsoUnit_EntitySet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoUnitEntitySetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoUnit_EntitySet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from Lookup_IsoUnit_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual System.Threading.Tasks.Task LookupIsoUnitEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous480 > select, string id) { return LookupIsoUnitEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None); } /// /// Get entity from Lookup_IsoUnit_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual Lookup_IsoUnit_EntityType LookupIsoUnitEntitySet(Id= '')(System.Collections.Generic.IEnumerable select, string id) { return System.Threading.Tasks.Task.Run(async () => await LookupIsoUnitEntitySet(Id = '')Async(select, id, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from Lookup_IsoUnit_EntitySet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Id /// response body for entity type Lookup_IsoUnit_EntityType /// A server side error occurred. public virtual async System.Threading.Tasks.Task LookupIsoUnitEntitySet(Id= '')Async(System.Collections.Generic.IEnumerable < Anonymous480 > select, string id, System.Threading.CancellationToken cancellationToken) { if (id == null) throw new System.ArgumentNullException("id"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Lookup_IsoUnit_EntitySet(Id='{Id}')?"); urlBuilder_.Replace("{Id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from NotesInfoVirtuals /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtualsGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return NotesInfoVirtualsGetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from NotesInfoVirtuals /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual Response42 NotesInfoVirtualsGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtualsGetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from NotesInfoVirtuals /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtualsGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to NotesInfoVirtuals /// /// Created NotesInfoVirtual object /// Prefer: return=minimal /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtualsPostAsync(NotesInfoVirtualInsert notesInfoVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return NotesInfoVirtualsPostAsync(notesInfoVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to NotesInfoVirtuals /// /// Created NotesInfoVirtual object /// Prefer: return=minimal /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual NotesInfoVirtual NotesInfoVirtualsPost(NotesInfoVirtualInsert notesInfoVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtualsPostAsync(notesInfoVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to NotesInfoVirtuals /// /// Created NotesInfoVirtual object /// Prefer: return=minimal /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtualsPostAsync(NotesInfoVirtualInsert notesInfoVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (notesInfoVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("notesInfoVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(notesInfoVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from NotesInfoVirtuals by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous484 > select, string objkey) { return NotesInfoVirtuals(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from NotesInfoVirtuals by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual NotesInfoVirtual NotesInfoVirtuals(Objkey= '')Get(System.Collections.Generic.IEnumerable < Anonymous484 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from NotesInfoVirtuals by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous484 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from NotesInfoVirtuals /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')DeleteAsync(string if_Match, string objkey) { return NotesInfoVirtuals(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from NotesInfoVirtuals /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void NotesInfoVirtuals(Objkey= '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from NotesInfoVirtuals /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in NotesInfoVirtuals /// /// Updated NotesInfoVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')PatchAsync(NotesInfoVirtualUpdate notesInfoVirtual_UpdateBodyParam, string if_Match, Prefer ? prefer, string objkey) { return NotesInfoVirtuals(Objkey = '')PatchAsync(notesInfoVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in NotesInfoVirtuals /// /// Updated NotesInfoVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual NotesInfoVirtual NotesInfoVirtuals(Objkey= '')Patch(NotesInfoVirtualUpdate notesInfoVirtual_UpdateBodyParam, string if_Match, Prefer ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')PatchAsync(notesInfoVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in NotesInfoVirtuals /// /// Updated NotesInfoVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')PatchAsync(NotesInfoVirtualUpdate notesInfoVirtual_UpdateBodyParam, string if_Match, Prefer ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (notesInfoVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("notesInfoVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(notesInfoVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtualsIfsApp_CustomerHandling_NotesInfoVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous485 > select, string if_Match) { return NotesInfoVirtualsIfsApp_CustomerHandling_NotesInfoVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual NotesInfoVirtual NotesInfoVirtualsIfsApp_CustomerHandling_NotesInfoVirtualDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtualsIfsApp_CustomerHandling_NotesInfoVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NotesInfoVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtualsIfsApp_CustomerHandling_NotesInfoVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous485 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals/IfsApp.CustomerHandling.NotesInfoVirtual_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from FinNotesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous486 > orderby, System.Collections.Generic.IEnumerable < Anonymous487 > select, string objkey) { return NotesInfoVirtuals(Objkey = '')FinNotesArrayGetAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from FinNotesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual Response43 NotesInfoVirtuals(Objkey= '')FinNotesArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous486 > orderby, System.Collections.Generic.IEnumerable < Anonymous487 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')FinNotesArrayGetAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from FinNotesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous486 > orderby, System.Collections.Generic.IEnumerable < Anonymous487 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')/FinNotesArray?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to FinNotesArray /// /// Created FinNotesVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArrayPostAsync(FinNotesVirtualInsert finNotesVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous488 > prefer, string objkey) { return NotesInfoVirtuals(Objkey = '')FinNotesArrayPostAsync(finNotesVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Add new entity to FinNotesArray /// /// Created FinNotesVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual FinNotesVirtual NotesInfoVirtuals(Objkey= '')FinNotesArrayPost(FinNotesVirtualInsert finNotesVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous488 > prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')FinNotesArrayPostAsync(finNotesVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to FinNotesArray /// /// Created FinNotesVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArrayPostAsync(FinNotesVirtualInsert finNotesVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous488 > prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (finNotesVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("finNotesVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')/FinNotesArray"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(finNotesVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from FinNotesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous489 > select, string objkey) { return NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from FinNotesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual FinNotesVirtual NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')Get(System.Collections.Generic.IEnumerable < Anonymous489 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from FinNotesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous489 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')/FinNotesArray(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from FinNotesArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')DeleteAsync(string if_Match, string objkey) { return NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from FinNotesArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from FinNotesArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')/FinNotesArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in FinNotesArray /// /// Updated FinNotesVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')PatchAsync(FinNotesVirtualUpdate finNotesVirtual_UpdateBodyParam, string if_Match, Prefer2 ? prefer, string objkey) { return NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')PatchAsync(finNotesVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in FinNotesArray /// /// Updated FinNotesVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual FinNotesVirtual NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')Patch(FinNotesVirtualUpdate finNotesVirtual_UpdateBodyParam, string if_Match, Prefer2 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NotesInfoVirtuals(Objkey = '')FinNotesArray(Objkey = '')PatchAsync(finNotesVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in FinNotesArray /// /// Updated FinNotesVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type FinNotesVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NotesInfoVirtuals(Objkey= '')FinNotesArray(Objkey = '')PatchAsync(FinNotesVirtualUpdate finNotesVirtual_UpdateBodyParam, string if_Match, Prefer2 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (finNotesVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("finNotesVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NotesInfoVirtuals(Objkey='{Objkey}')/FinNotesArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(finNotesVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ParentCorporateRelationVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ParentCorporateRelationVirtualSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from ParentCorporateRelationVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual Response44 ParentCorporateRelationVirtualSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ParentCorporateRelationVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to ParentCorporateRelationVirtualSet /// /// Created ParentCorporateRelationVirtual object /// Prefer: return=minimal /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSetPostAsync(ParentCorporateRelationVirtualInsert parentCorporateRelationVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return ParentCorporateRelationVirtualSetPostAsync(parentCorporateRelationVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to ParentCorporateRelationVirtualSet /// /// Created ParentCorporateRelationVirtual object /// Prefer: return=minimal /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual ParentCorporateRelationVirtual ParentCorporateRelationVirtualSetPost(ParentCorporateRelationVirtualInsert parentCorporateRelationVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSetPostAsync(parentCorporateRelationVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to ParentCorporateRelationVirtualSet /// /// Created ParentCorporateRelationVirtual object /// Prefer: return=minimal /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSetPostAsync(ParentCorporateRelationVirtualInsert parentCorporateRelationVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (parentCorporateRelationVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("parentCorporateRelationVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(parentCorporateRelationVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from ParentCorporateRelationVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous494 > select, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from ParentCorporateRelationVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual ParentCorporateRelationVirtual ParentCorporateRelationVirtualSet(Objkey= '')Get(System.Collections.Generic.IEnumerable < Anonymous494 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from ParentCorporateRelationVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous494 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from ParentCorporateRelationVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')DeleteAsync(string if_Match, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from ParentCorporateRelationVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void ParentCorporateRelationVirtualSet(Objkey= '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from ParentCorporateRelationVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in ParentCorporateRelationVirtualSet /// /// Updated ParentCorporateRelationVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')PatchAsync(ParentCorporateRelationVirtualUpdate parentCorporateRelationVirtual_UpdateBodyParam, string if_Match, Prefer3 ? prefer, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')PatchAsync(parentCorporateRelationVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in ParentCorporateRelationVirtualSet /// /// Updated ParentCorporateRelationVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual ParentCorporateRelationVirtual ParentCorporateRelationVirtualSet(Objkey= '')Patch(ParentCorporateRelationVirtualUpdate parentCorporateRelationVirtual_UpdateBodyParam, string if_Match, Prefer3 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')PatchAsync(parentCorporateRelationVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in ParentCorporateRelationVirtualSet /// /// Updated ParentCorporateRelationVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')PatchAsync(ParentCorporateRelationVirtualUpdate parentCorporateRelationVirtual_UpdateBodyParam, string if_Match, Prefer3 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (parentCorporateRelationVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("parentCorporateRelationVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(parentCorporateRelationVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSetIfsApp_CustomerHandling_ParentCorporateRelationVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous495 > select, string if_Match) { return ParentCorporateRelationVirtualSetIfsApp_CustomerHandling_ParentCorporateRelationVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual ParentCorporateRelationVirtual ParentCorporateRelationVirtualSetIfsApp_CustomerHandling_ParentCorporateRelationVirtualDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSetIfsApp_CustomerHandling_ParentCorporateRelationVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ParentCorporateRelationVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSetIfsApp_CustomerHandling_ParentCorporateRelationVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous495 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet/IfsApp.CustomerHandling.ParentCorporateRelationVirtual_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CreditRelationships /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CreditRelationship /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous496 > orderby, System.Collections.Generic.IEnumerable < Anonymous497 > select, System.Collections.Generic.IEnumerable < Anonymous498 > expand, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationshipsGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from CreditRelationships /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CreditRelationship /// A server side error occurred. public virtual Response127 ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous496 > orderby, System.Collections.Generic.IEnumerable < Anonymous497 > select, System.Collections.Generic.IEnumerable < Anonymous498 > expand, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationshipsGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CreditRelationships /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CreditRelationship /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous496 > orderby, System.Collections.Generic.IEnumerable < Anonymous497 > select, System.Collections.Generic.IEnumerable < Anonymous498 > expand, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/CreditRelationships?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CreditRelationships /// /// Created CreditRelationship object /// Prefer: return=minimal /// key: Objkey /// response body for entity type CreditRelationship /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsPostAsync(CreditRelationshipInsert creditRelationship_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous499 > prefer, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationshipsPostAsync(creditRelationship_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Add new entity to CreditRelationships /// /// Created CreditRelationship object /// Prefer: return=minimal /// key: Objkey /// response body for entity type CreditRelationship /// A server side error occurred. public virtual CreditRelationship ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsPost(CreditRelationshipInsert creditRelationship_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous499 > prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationshipsPostAsync(creditRelationship_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CreditRelationships /// /// Created CreditRelationship object /// Prefer: return=minimal /// key: Objkey /// response body for entity type CreditRelationship /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationshipsPostAsync(CreditRelationshipInsert creditRelationship_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous499 > prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (creditRelationship_InsertBodyParam == null) throw new System.ArgumentNullException("creditRelationship_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/CreditRelationships"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(creditRelationship_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CreditRelationships by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous500 > select, string company, string identity, string childCompany, string childIdentity) { return ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')GetAsync(select, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None); } /// /// Get entity from CreditRelationships by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual CreditRelationship ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')Get(System.Collections.Generic.IEnumerable < Anonymous500 > select, string company, string identity, string childCompany, string childIdentity) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')GetAsync(select, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CreditRelationships by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// response body for entity type CreditRelationship /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous500 > select, string company, string identity, string childCompany, string childIdentity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childIdentity == null) throw new System.ArgumentNullException("childIdentity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/CreditRelationships(Company='{Company}',Identity='{Identity}',ChildCompany='{ChildCompany}',ChildIdentity='{ChildIdentity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildIdentity}", System.Uri.EscapeDataString(ConvertToString(childIdentity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CreditRelationships /// /// E-Tag /// key: Objkey /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')DeleteAsync(string if_Match, string objkey, string company, string identity, string childCompany, string childIdentity) { return ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')DeleteAsync(if_Match, objkey, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None); } /// /// Delete entity from CreditRelationships /// /// E-Tag /// key: Objkey /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// No Content /// A server side error occurred. public virtual void ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')Delete(string if_Match, string objkey, string company, string identity, string childCompany, string childIdentity) { System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')DeleteAsync(if_Match, objkey, company, identity, childCompany, childIdentity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CreditRelationships /// /// E-Tag /// key: Objkey /// key: Company /// key: Identity /// key: ChildCompany /// key: ChildIdentity /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CreditRelationships(Company = '', Identity = '', ChildCompany = '', ChildIdentity = '')DeleteAsync(string if_Match, string objkey, string company, string identity, string childCompany, string childIdentity, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childIdentity == null) throw new System.ArgumentNullException("childIdentity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/CreditRelationships(Company='{Company}',Identity='{Identity}',ChildCompany='{ChildCompany}',ChildIdentity='{ChildIdentity}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildIdentity}", System.Uri.EscapeDataString(ConvertToString(childIdentity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CompanyFinanceRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array CompanyFinance /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CompanyFinanceRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous501 > orderby, System.Collections.Generic.IEnumerable < Anonymous502 > select, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')CompanyFinanceRefAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from CompanyFinanceRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array CompanyFinance /// A server side error occurred. public virtual Response122 ParentCorporateRelationVirtualSet(Objkey= '')CompanyFinanceRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous501 > orderby, System.Collections.Generic.IEnumerable < Anonymous502 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')CompanyFinanceRefAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CompanyFinanceRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array CompanyFinance /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')CompanyFinanceRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous501 > orderby, System.Collections.Generic.IEnumerable < Anonymous502 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/CompanyFinanceRef?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from IdentityRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')IdentityRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous503 > orderby, System.Collections.Generic.IEnumerable < Anonymous504 > select, System.Collections.Generic.IEnumerable < Anonymous505 > expand, string objkey) { return ParentCorporateRelationVirtualSet(Objkey = '')IdentityRefAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from IdentityRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CustomerInfo /// A server side error occurred. public virtual Response53 ParentCorporateRelationVirtualSet(Objkey= '')IdentityRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous503 > orderby, System.Collections.Generic.IEnumerable < Anonymous504 > select, System.Collections.Generic.IEnumerable < Anonymous505 > expand, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ParentCorporateRelationVirtualSet(Objkey = '')IdentityRefAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from IdentityRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ParentCorporateRelationVirtualSet(Objkey= '')IdentityRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous503 > orderby, System.Collections.Generic.IEnumerable < Anonymous504 > select, System.Collections.Generic.IEnumerable < Anonymous505 > expand, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ParentCorporateRelationVirtualSet(Objkey='{Objkey}')/IdentityRef?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CrmCustInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return CrmCustInfoSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from CrmCustInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual Response49 CrmCustInfoSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CrmCustInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CrmCustInfoSet /// /// Created CrmCustInfo object /// Prefer: return=minimal /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSetPostAsync(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return CrmCustInfoSetPostAsync(crmCustInfo_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to CrmCustInfoSet /// /// Created CrmCustInfo object /// Prefer: return=minimal /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSetPost(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSetPostAsync(crmCustInfo_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CrmCustInfoSet /// /// Created CrmCustInfo object /// Prefer: return=minimal /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSetPostAsync(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (crmCustInfo_InsertBodyParam == null) throw new System.ArgumentNullException("crmCustInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCustInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CrmCustInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous510 > select, string customerId) { return CrmCustInfoSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CrmCustInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSet(CustomerId= '')Get(System.Collections.Generic.IEnumerable < Anonymous510 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CrmCustInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous510 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CrmCustInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')DeleteAsync(string if_Match, string customerId) { return CrmCustInfoSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None); } /// /// Delete entity from CrmCustInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual void CrmCustInfoSet(CustomerId= '')Delete(string if_Match, string customerId) { System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CrmCustInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')DeleteAsync(string if_Match, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CrmCustInfoSet /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')PatchAsync(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer4 ? prefer, string customerId) { return CrmCustInfoSet(CustomerId = '')PatchAsync(crmCustInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Update entity in CrmCustInfoSet /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSet(CustomerId= '')Patch(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer4 ? prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')PatchAsync(crmCustInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CrmCustInfoSet /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')PatchAsync(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer4 ? prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (crmCustInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("crmCustInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCustInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')IfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous511 > select, string customerId, string copyValues, string if_Match) { return CrmCustInfoSet(CustomerId = '')IfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSet(CustomerId= '')IfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)(System.Collections.Generic.IEnumerable < Anonymous511 > select, string customerId, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')IfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')IfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous511 > select, string customerId, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/IfsApp.CustomerHandling.CrmCustInfo_DefaultCopy(CopyValues=@CopyValues)?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous512 > select, string copyValues, string if_Match) { return CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues= @CopyValues)(System.Collections.Generic.IEnumerable select, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CrmCustInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous512 > select, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet/IfsApp.CustomerHandling.CrmCustInfo_DefaultCopy(CopyValues=@CopyValues)?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefault()Async(System.Collections.Generic.IEnumerable < Anonymous513 > select, string if_Match) { return CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSetIfsApp_CustomerHandling_CrmCustInfoDefault()Async(System.Collections.Generic.IEnumerable < Anonymous513 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet/IfsApp.CustomerHandling.CrmCustInfo_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerRepresentatives /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentativesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous514 > orderby, System.Collections.Generic.IEnumerable < Anonymous515 > select, System.Collections.Generic.IEnumerable < Anonymous516 > expand, string customerId) { return CrmCustInfoSet(CustomerId = '')CustomerRepresentativesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerRepresentatives /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual Response128 CrmCustInfoSet(CustomerId= '')CustomerRepresentativesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous514 > orderby, System.Collections.Generic.IEnumerable < Anonymous515 > select, System.Collections.Generic.IEnumerable < Anonymous516 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')CustomerRepresentativesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerRepresentatives /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentativesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous514 > orderby, System.Collections.Generic.IEnumerable < Anonymous515 > select, System.Collections.Generic.IEnumerable < Anonymous516 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/CustomerRepresentatives?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerRepresentatives /// /// Created BusObjectRepresentative object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentativesPostAsync(BusObjectRepresentativeInsert busObjectRepresentative_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous517 > prefer, string customerId) { return CrmCustInfoSet(CustomerId = '')CustomerRepresentativesPostAsync(busObjectRepresentative_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerRepresentatives /// /// Created BusObjectRepresentative object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual BusObjectRepresentative CrmCustInfoSet(CustomerId= '')CustomerRepresentativesPost(BusObjectRepresentativeInsert busObjectRepresentative_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous517 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')CustomerRepresentativesPostAsync(busObjectRepresentative_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerRepresentatives /// /// Created BusObjectRepresentative object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentativesPostAsync(BusObjectRepresentativeInsert busObjectRepresentative_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous517 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (busObjectRepresentative_InsertBodyParam == null) throw new System.ArgumentNullException("busObjectRepresentative_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/CustomerRepresentatives"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(busObjectRepresentative_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerRepresentatives by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous518 > select, string businessObjectId, string businessObjectType, string representativeId) { return CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')GetAsync(select, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerRepresentatives by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual BusObjectRepresentative CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')Get(System.Collections.Generic.IEnumerable < Anonymous518 > select, string businessObjectId, string businessObjectType, string representativeId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')GetAsync(select, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerRepresentatives by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous518 > select, string businessObjectId, string businessObjectType, string representativeId, System.Threading.CancellationToken cancellationToken) { if (businessObjectId == null) throw new System.ArgumentNullException("businessObjectId"); if (businessObjectType == null) throw new System.ArgumentNullException("businessObjectType"); if (representativeId == null) throw new System.ArgumentNullException("representativeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/CustomerRepresentatives(BusinessObjectId='{BusinessObjectId}',BusinessObjectType='{BusinessObjectType}',RepresentativeId='{RepresentativeId}')?"); urlBuilder_.Replace("{BusinessObjectId}", System.Uri.EscapeDataString(ConvertToString(businessObjectId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectType}", System.Uri.EscapeDataString(ConvertToString(businessObjectType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{RepresentativeId}", System.Uri.EscapeDataString(ConvertToString(representativeId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerRepresentatives /// /// E-Tag /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')DeleteAsync(string if_Match, string customerId, string businessObjectId, string businessObjectType, string representativeId) { return CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')DeleteAsync(if_Match, customerId, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerRepresentatives /// /// E-Tag /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// No Content /// A server side error occurred. public virtual void CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')Delete(string if_Match, string customerId, string businessObjectId, string businessObjectType, string representativeId) { System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')DeleteAsync(if_Match, customerId, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerRepresentatives /// /// E-Tag /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')DeleteAsync(string if_Match, string customerId, string businessObjectId, string businessObjectType, string representativeId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (businessObjectId == null) throw new System.ArgumentNullException("businessObjectId"); if (businessObjectType == null) throw new System.ArgumentNullException("businessObjectType"); if (representativeId == null) throw new System.ArgumentNullException("representativeId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/CustomerRepresentatives(BusinessObjectId='{BusinessObjectId}',BusinessObjectType='{BusinessObjectType}',RepresentativeId='{RepresentativeId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectId}", System.Uri.EscapeDataString(ConvertToString(businessObjectId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectType}", System.Uri.EscapeDataString(ConvertToString(businessObjectType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{RepresentativeId}", System.Uri.EscapeDataString(ConvertToString(representativeId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerRepresentatives /// /// Updated BusObjectRepresentative object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')PatchAsync(BusObjectRepresentativeUpdate busObjectRepresentative_UpdateBodyParam, string if_Match, Prefer5 ? prefer, string customerId, string businessObjectId, string businessObjectType, string representativeId) { return CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')PatchAsync(busObjectRepresentative_UpdateBodyParam, if_Match, prefer, customerId, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerRepresentatives /// /// Updated BusObjectRepresentative object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual BusObjectRepresentative CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')Patch(BusObjectRepresentativeUpdate busObjectRepresentative_UpdateBodyParam, string if_Match, Prefer5 ? prefer, string customerId, string businessObjectId, string businessObjectType, string representativeId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')PatchAsync(busObjectRepresentative_UpdateBodyParam, if_Match, prefer, customerId, businessObjectId, businessObjectType, representativeId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerRepresentatives /// /// Updated BusObjectRepresentative object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: BusinessObjectId /// key: BusinessObjectType /// key: RepresentativeId /// response body for entity type BusObjectRepresentative /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')CustomerRepresentatives(BusinessObjectId = '', BusinessObjectType = '', RepresentativeId = '')PatchAsync(BusObjectRepresentativeUpdate busObjectRepresentative_UpdateBodyParam, string if_Match, Prefer5 ? prefer, string customerId, string businessObjectId, string businessObjectType, string representativeId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (businessObjectId == null) throw new System.ArgumentNullException("businessObjectId"); if (businessObjectType == null) throw new System.ArgumentNullException("businessObjectType"); if (representativeId == null) throw new System.ArgumentNullException("representativeId"); if (busObjectRepresentative_UpdateBodyParam == null) throw new System.ArgumentNullException("busObjectRepresentative_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/CustomerRepresentatives(BusinessObjectId='{BusinessObjectId}',BusinessObjectType='{BusinessObjectType}',RepresentativeId='{RepresentativeId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectId}", System.Uri.EscapeDataString(ConvertToString(businessObjectId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{BusinessObjectType}", System.Uri.EscapeDataString(ConvertToString(businessObjectType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{RepresentativeId}", System.Uri.EscapeDataString(ConvertToString(representativeId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(busObjectRepresentative_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ChildCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous519 > orderby, System.Collections.Generic.IEnumerable < Anonymous520 > select, System.Collections.Generic.IEnumerable < Anonymous521 > expand, string customerId) { return CrmCustInfoSet(CustomerId = '')ChildCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from ChildCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual Response129 CrmCustInfoSet(CustomerId= '')ChildCompaniesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous519 > orderby, System.Collections.Generic.IEnumerable < Anonymous520 > select, System.Collections.Generic.IEnumerable < Anonymous521 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ChildCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ChildCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous519 > orderby, System.Collections.Generic.IEnumerable < Anonymous520 > select, System.Collections.Generic.IEnumerable < Anonymous521 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ChildCompanies?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to ChildCompanies /// /// Created CrmCompanyRelation object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompaniesPostAsync(CrmCompanyRelationInsert crmCompanyRelation_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous522 > prefer, string customerId) { return CrmCustInfoSet(CustomerId = '')ChildCompaniesPostAsync(crmCompanyRelation_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to ChildCompanies /// /// Created CrmCompanyRelation object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual CrmCompanyRelation CrmCustInfoSet(CustomerId= '')ChildCompaniesPost(CrmCompanyRelationInsert crmCompanyRelation_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous522 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ChildCompaniesPostAsync(crmCompanyRelation_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to ChildCompanies /// /// Created CrmCompanyRelation object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompaniesPostAsync(CrmCompanyRelationInsert crmCompanyRelation_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous522 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (crmCompanyRelation_InsertBodyParam == null) throw new System.ArgumentNullException("crmCompanyRelation_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ChildCompanies"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCompanyRelation_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from ChildCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous523 > select, string childCompany, string childCategory) { return CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')GetAsync(select, childCompany, childCategory, System.Threading.CancellationToken.None); } /// /// Get entity from ChildCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual CrmCompanyRelation CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')Get(System.Collections.Generic.IEnumerable < Anonymous523 > select, string childCompany, string childCategory) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')GetAsync(select, childCompany, childCategory, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from ChildCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous523 > select, string childCompany, string childCategory, System.Threading.CancellationToken cancellationToken) { if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childCategory == null) throw new System.ArgumentNullException("childCategory"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ChildCompanies(ChildCompany='{ChildCompany}',ChildCategory='{ChildCategory}')?"); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCategory}", System.Uri.EscapeDataString(ConvertToString(childCategory, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from ChildCompanies /// /// E-Tag /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')DeleteAsync(string if_Match, string customerId, string childCompany, string childCategory) { return CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')DeleteAsync(if_Match, customerId, childCompany, childCategory, System.Threading.CancellationToken.None); } /// /// Delete entity from ChildCompanies /// /// E-Tag /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// No Content /// A server side error occurred. public virtual void CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')Delete(string if_Match, string customerId, string childCompany, string childCategory) { System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')DeleteAsync(if_Match, customerId, childCompany, childCategory, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from ChildCompanies /// /// E-Tag /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')DeleteAsync(string if_Match, string customerId, string childCompany, string childCategory, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childCategory == null) throw new System.ArgumentNullException("childCategory"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ChildCompanies(ChildCompany='{ChildCompany}',ChildCategory='{ChildCategory}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCategory}", System.Uri.EscapeDataString(ConvertToString(childCategory, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in ChildCompanies /// /// Updated CrmCompanyRelation object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')PatchAsync(CrmCompanyRelationUpdate crmCompanyRelation_UpdateBodyParam, string if_Match, Prefer6 ? prefer, string customerId, string childCompany, string childCategory) { return CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')PatchAsync(crmCompanyRelation_UpdateBodyParam, if_Match, prefer, customerId, childCompany, childCategory, System.Threading.CancellationToken.None); } /// /// Update entity in ChildCompanies /// /// Updated CrmCompanyRelation object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual CrmCompanyRelation CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')Patch(CrmCompanyRelationUpdate crmCompanyRelation_UpdateBodyParam, string if_Match, Prefer6 ? prefer, string customerId, string childCompany, string childCategory) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ChildCompanies(ChildCompany = '', ChildCategory = '')PatchAsync(crmCompanyRelation_UpdateBodyParam, if_Match, prefer, customerId, childCompany, childCategory, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in ChildCompanies /// /// Updated CrmCompanyRelation object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ChildCompany /// key: ChildCategory /// response body for entity type CrmCompanyRelation /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ChildCompanies(ChildCompany = '', ChildCategory = '')PatchAsync(CrmCompanyRelationUpdate crmCompanyRelation_UpdateBodyParam, string if_Match, Prefer6 ? prefer, string customerId, string childCompany, string childCategory, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (childCompany == null) throw new System.ArgumentNullException("childCompany"); if (childCategory == null) throw new System.ArgumentNullException("childCategory"); if (crmCompanyRelation_UpdateBodyParam == null) throw new System.ArgumentNullException("crmCompanyRelation_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ChildCompanies(ChildCompany='{ChildCompany}',ChildCategory='{ChildCategory}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCompany}", System.Uri.EscapeDataString(ConvertToString(childCompany, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChildCategory}", System.Uri.EscapeDataString(ConvertToString(childCategory, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCompanyRelation_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from MainRepresentativeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')MainRepresentativeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous524 > orderby, System.Collections.Generic.IEnumerable < Anonymous525 > select, string customerId) { return CrmCustInfoSet(CustomerId = '')MainRepresentativeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from MainRepresentativeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual Response27 CrmCustInfoSet(CustomerId= '')MainRepresentativeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous524 > orderby, System.Collections.Generic.IEnumerable < Anonymous525 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')MainRepresentativeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from MainRepresentativeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array RepresentativeLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')MainRepresentativeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous524 > orderby, System.Collections.Generic.IEnumerable < Anonymous525 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/MainRepresentativeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from TurnoverCurrencyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')TurnoverCurrencyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous526 > orderby, System.Collections.Generic.IEnumerable < Anonymous527 > select, string customerId) { return CrmCustInfoSet(CustomerId = '')TurnoverCurrencyRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from TurnoverCurrencyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual Response83 CrmCustInfoSet(CustomerId= '')TurnoverCurrencyRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous526 > orderby, System.Collections.Generic.IEnumerable < Anonymous527 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')TurnoverCurrencyRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from TurnoverCurrencyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')TurnoverCurrencyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous526 > orderby, System.Collections.Generic.IEnumerable < Anonymous527 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/TurnoverCurrencyRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from BusinessLeadRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessLead /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')BusinessLeadRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous528 > orderby, System.Collections.Generic.IEnumerable < Anonymous529 > select, string customerId) { return CrmCustInfoSet(CustomerId = '')BusinessLeadRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from BusinessLeadRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessLead /// A server side error occurred. public virtual Response103 CrmCustInfoSet(CustomerId= '')BusinessLeadRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous528 > orderby, System.Collections.Generic.IEnumerable < Anonymous529 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')BusinessLeadRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from BusinessLeadRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessLead /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')BusinessLeadRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous528 > orderby, System.Collections.Generic.IEnumerable < Anonymous529 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/BusinessLeadRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ParentAccountRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ParentAccountRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous530 > orderby, System.Collections.Generic.IEnumerable < Anonymous531 > select, string customerId) { return CrmCustInfoSet(CustomerId = '')ParentAccountRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from ParentAccountRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual Response28 CrmCustInfoSet(CustomerId= '')ParentAccountRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous530 > orderby, System.Collections.Generic.IEnumerable < Anonymous531 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CrmCustInfoSet(CustomerId = '')ParentAccountRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ParentAccountRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CrmCustInfoAndLeadLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CrmCustInfoSet(CustomerId= '')ParentAccountRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous530 > orderby, System.Collections.Generic.IEnumerable < Anonymous531 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CrmCustInfoSet(CustomerId='{CustomerId}')/ParentAccountRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from NoteTexts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTextsGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return NoteTextsGetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Get entities from NoteTexts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual Response45 NoteTextsGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await NoteTextsGetAsync(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from NoteTexts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for entity array NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTextsGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to NoteTexts /// /// Created NoteTextVirtual object /// Prefer: return=minimal /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTextsPostAsync(NoteTextVirtualInsert noteTextVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return NoteTextsPostAsync(noteTextVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to NoteTexts /// /// Created NoteTextVirtual object /// Prefer: return=minimal /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual NoteTextVirtual NoteTextsPost(NoteTextVirtualInsert noteTextVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await NoteTextsPostAsync(noteTextVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to NoteTexts /// /// Created NoteTextVirtual object /// Prefer: return=minimal /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTextsPostAsync(NoteTextVirtualInsert noteTextVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (noteTextVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("noteTextVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(noteTextVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from NoteTexts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous535 > select, string objkey) { return NoteTexts(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from NoteTexts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual NoteTextVirtual NoteTexts(Objkey= '')Get(System.Collections.Generic.IEnumerable < Anonymous535 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from NoteTexts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous535 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from NoteTexts /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DeleteAsync(string if_Match, string objkey) { return NoteTexts(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from NoteTexts /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void NoteTexts(Objkey= '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from NoteTexts /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in NoteTexts /// /// Updated NoteTextVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')PatchAsync(NoteTextVirtualUpdate noteTextVirtual_UpdateBodyParam, string if_Match, Prefer7 ? prefer, string objkey) { return NoteTexts(Objkey = '')PatchAsync(noteTextVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in NoteTexts /// /// Updated NoteTextVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual NoteTextVirtual NoteTexts(Objkey= '')Patch(NoteTextVirtualUpdate noteTextVirtual_UpdateBodyParam, string if_Match, Prefer7 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')PatchAsync(noteTextVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in NoteTexts /// /// Updated NoteTextVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')PatchAsync(NoteTextVirtualUpdate noteTextVirtual_UpdateBodyParam, string if_Match, Prefer7 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (noteTextVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("noteTextVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(noteTextVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTextsIfsApp_CustomerHandling_NoteTextVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous536 > select, string if_Match) { return NoteTextsIfsApp_CustomerHandling_NoteTextVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual NoteTextVirtual NoteTextsIfsApp_CustomerHandling_NoteTextVirtualDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await NoteTextsIfsApp_CustomerHandling_NoteTextVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type NoteTextVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTextsIfsApp_CustomerHandling_NoteTextVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous536 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts/IfsApp.CustomerHandling.NoteTextVirtual_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from DetailNotes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous537 > orderby, System.Collections.Generic.IEnumerable < Anonymous538 > select, System.Collections.Generic.IEnumerable < Anonymous539 > expand, string objkey) { return NoteTexts(Objkey = '')DetailNotesGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from DetailNotes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array DocumentText /// A server side error occurred. public virtual Response131 NoteTexts(Objkey= '')DetailNotesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous537 > orderby, System.Collections.Generic.IEnumerable < Anonymous538 > select, System.Collections.Generic.IEnumerable < Anonymous539 > expand, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DetailNotesGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from DetailNotes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous537 > orderby, System.Collections.Generic.IEnumerable < Anonymous538 > select, System.Collections.Generic.IEnumerable < Anonymous539 > expand, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')/DetailNotes?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to DetailNotes /// /// Created DocumentText object /// Prefer: return=minimal /// key: Objkey /// response body for entity type DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotesPostAsync(DocumentTextInsert documentText_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous540 > prefer, string objkey) { return NoteTexts(Objkey = '')DetailNotesPostAsync(documentText_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Add new entity to DetailNotes /// /// Created DocumentText object /// Prefer: return=minimal /// key: Objkey /// response body for entity type DocumentText /// A server side error occurred. public virtual DocumentText NoteTexts(Objkey= '')DetailNotesPost(DocumentTextInsert documentText_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous540 > prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DetailNotesPostAsync(documentText_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to DetailNotes /// /// Created DocumentText object /// Prefer: return=minimal /// key: Objkey /// response body for entity type DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotesPostAsync(DocumentTextInsert documentText_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous540 > prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (documentText_InsertBodyParam == null) throw new System.ArgumentNullException("documentText_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')/DetailNotes"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(documentText_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from DetailNotes by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous541 > select, string outputType, double noteId) { return NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')GetAsync(select, outputType, noteId, System.Threading.CancellationToken.None); } /// /// Get entity from DetailNotes by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual DocumentText NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')Get(System.Collections.Generic.IEnumerable < Anonymous541 > select, string outputType, double noteId) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')GetAsync(select, outputType, noteId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from DetailNotes by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous541 > select, string outputType, double noteId, System.Threading.CancellationToken cancellationToken) { if (outputType == null) throw new System.ArgumentNullException("outputType"); if (noteId == null) throw new System.ArgumentNullException("noteId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')/DetailNotes(OutputType='{OutputType}',NoteId='{NoteId}')?"); urlBuilder_.Replace("{OutputType}", System.Uri.EscapeDataString(ConvertToString(outputType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NoteId}", System.Uri.EscapeDataString(ConvertToString(noteId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from DetailNotes /// /// E-Tag /// key: Objkey /// key: OutputType /// key: NoteId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')DeleteAsync(string if_Match, string objkey, string outputType, double noteId) { return NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')DeleteAsync(if_Match, objkey, outputType, noteId, System.Threading.CancellationToken.None); } /// /// Delete entity from DetailNotes /// /// E-Tag /// key: Objkey /// key: OutputType /// key: NoteId /// No Content /// A server side error occurred. public virtual void NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')Delete(string if_Match, string objkey, string outputType, double noteId) { System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')DeleteAsync(if_Match, objkey, outputType, noteId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from DetailNotes /// /// E-Tag /// key: Objkey /// key: OutputType /// key: NoteId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')DeleteAsync(string if_Match, string objkey, string outputType, double noteId, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (outputType == null) throw new System.ArgumentNullException("outputType"); if (noteId == null) throw new System.ArgumentNullException("noteId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')/DetailNotes(OutputType='{OutputType}',NoteId='{NoteId}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{OutputType}", System.Uri.EscapeDataString(ConvertToString(outputType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NoteId}", System.Uri.EscapeDataString(ConvertToString(noteId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in DetailNotes /// /// Updated DocumentText object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')PatchAsync(DocumentTextUpdate documentText_UpdateBodyParam, string if_Match, Prefer8 ? prefer, string objkey, string outputType, double noteId) { return NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')PatchAsync(documentText_UpdateBodyParam, if_Match, prefer, objkey, outputType, noteId, System.Threading.CancellationToken.None); } /// /// Update entity in DetailNotes /// /// Updated DocumentText object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual DocumentText NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')Patch(DocumentTextUpdate documentText_UpdateBodyParam, string if_Match, Prefer8 ? prefer, string objkey, string outputType, double noteId) { return System.Threading.Tasks.Task.Run(async () => await NoteTexts(Objkey = '')DetailNotes(OutputType = '', NoteId = '')PatchAsync(documentText_UpdateBodyParam, if_Match, prefer, objkey, outputType, noteId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in DetailNotes /// /// Updated DocumentText object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// key: OutputType /// key: NoteId /// response body for entity type DocumentText /// A server side error occurred. public virtual async System.Threading.Tasks.Task NoteTexts(Objkey= '')DetailNotes(OutputType = '', NoteId = '')PatchAsync(DocumentTextUpdate documentText_UpdateBodyParam, string if_Match, Prefer8 ? prefer, string objkey, string outputType, double noteId, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (outputType == null) throw new System.ArgumentNullException("outputType"); if (noteId == null) throw new System.ArgumentNullException("noteId"); if (documentText_UpdateBodyParam == null) throw new System.ArgumentNullException("documentText_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/NoteTexts(Objkey='{Objkey}')/DetailNotes(OutputType='{OutputType}',NoteId='{NoteId}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{OutputType}", System.Uri.EscapeDataString(ConvertToString(outputType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NoteId}", System.Uri.EscapeDataString(ConvertToString(noteId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(documentText_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustOrdCustomerSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return CustOrdCustomerSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from CustOrdCustomerSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual Response50 CustOrdCustomerSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustOrdCustomerSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustOrdCustomerSet /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSetPostAsync(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return CustOrdCustomerSetPostAsync(custOrdCustomer_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to CustOrdCustomerSet /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSetPost(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSetPostAsync(custOrdCustomer_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustOrdCustomerSet /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSetPostAsync(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (custOrdCustomer_InsertBodyParam == null) throw new System.ArgumentNullException("custOrdCustomer_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custOrdCustomer_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustOrdCustomerSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous546 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CustOrdCustomerSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSet(CustomerId= '')Get(System.Collections.Generic.IEnumerable < Anonymous546 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustOrdCustomerSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous546 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustOrdCustomerSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')DeleteAsync(string if_Match, string customerId) { return CustOrdCustomerSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustOrdCustomerSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')Delete(string if_Match, string customerId) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustOrdCustomerSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')DeleteAsync(string if_Match, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustOrdCustomerSet /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PatchAsync(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer9 ? prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')PatchAsync(custOrdCustomer_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Update entity in CustOrdCustomerSet /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSet(CustomerId= '')Patch(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer9 ? prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')PatchAsync(custOrdCustomer_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustOrdCustomerSet /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PatchAsync(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer9 ? prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (custOrdCustomer_UpdateBodyParam == null) throw new System.ArgumentNullException("custOrdCustomer_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custOrdCustomer_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')IfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous547 > select, string customerId, string copyValues, string if_Match) { return CustOrdCustomerSet(CustomerId = '')IfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSet(CustomerId= '')IfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)(System.Collections.Generic.IEnumerable < Anonymous547 > select, string customerId, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')IfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')IfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous547 > select, string customerId, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/IfsApp.CustomerHandling.CustOrdCustomer_DefaultCopy(CopyValues=@CopyValues)?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous548 > select, string copyValues, string if_Match) { return CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues= @CopyValues)(System.Collections.Generic.IEnumerable select, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustOrdCustomerCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous548 > select, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet/IfsApp.CustomerHandling.CustOrdCustomer_DefaultCopy(CopyValues=@CopyValues)?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefault()Async(System.Collections.Generic.IEnumerable < Anonymous549 > select, string if_Match) { return CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSetIfsApp_CustomerHandling_CustOrdCustomerDefault()Async(System.Collections.Generic.IEnumerable < Anonymous549 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet/IfsApp.CustomerHandling.CustOrdCustomer_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from TaxCalculationBasisArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous550 > orderby, System.Collections.Generic.IEnumerable < Anonymous551 > select, System.Collections.Generic.IEnumerable < Anonymous552 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from TaxCalculationBasisArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual Response132 CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous550 > orderby, System.Collections.Generic.IEnumerable < Anonymous551 > select, System.Collections.Generic.IEnumerable < Anonymous552 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from TaxCalculationBasisArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerTaxCalcBasis /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous550 > orderby, System.Collections.Generic.IEnumerable < Anonymous551 > select, System.Collections.Generic.IEnumerable < Anonymous552 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/TaxCalculationBasisArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to TaxCalculationBasisArray /// /// Created CustomerTaxCalcBasis object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayPostAsync(CustomerTaxCalcBasisInsert customerTaxCalcBasis_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous553 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArrayPostAsync(customerTaxCalcBasis_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to TaxCalculationBasisArray /// /// Created CustomerTaxCalcBasis object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual CustomerTaxCalcBasis CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayPost(CustomerTaxCalcBasisInsert customerTaxCalcBasis_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous553 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArrayPostAsync(customerTaxCalcBasis_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to TaxCalculationBasisArray /// /// Created CustomerTaxCalcBasis object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArrayPostAsync(CustomerTaxCalcBasisInsert customerTaxCalcBasis_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous553 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerTaxCalcBasis_InsertBodyParam == null) throw new System.ArgumentNullException("customerTaxCalcBasis_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/TaxCalculationBasisArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerTaxCalcBasis_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from TaxCalculationBasisArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous554 > select, string customerNo, string company) { return CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArray(CustomerNo = '', Company = '')GetAsync(select, customerNo, company, System.Threading.CancellationToken.None); } /// /// Get entity from TaxCalculationBasisArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual CustomerTaxCalcBasis CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')Get(System.Collections.Generic.IEnumerable < Anonymous554 > select, string customerNo, string company) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArray(CustomerNo = '', Company = '')GetAsync(select, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from TaxCalculationBasisArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type CustomerTaxCalcBasis /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous554 > select, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/TaxCalculationBasisArray(CustomerNo='{CustomerNo}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from TaxCalculationBasisArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')DeleteAsync(string if_Match, string customerId, string customerNo, string company) { return CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArray(CustomerNo = '', Company = '')DeleteAsync(if_Match, customerId, customerNo, company, System.Threading.CancellationToken.None); } /// /// Delete entity from TaxCalculationBasisArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')Delete(string if_Match, string customerId, string customerNo, string company) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')TaxCalculationBasisArray(CustomerNo = '', Company = '')DeleteAsync(if_Match, customerId, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from TaxCalculationBasisArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TaxCalculationBasisArray(CustomerNo = '', Company = '')DeleteAsync(string if_Match, string customerId, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/TaxCalculationBasisArray(CustomerNo='{CustomerNo}',Company='{Company}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ClosingDatesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous555 > orderby, System.Collections.Generic.IEnumerable < Anonymous556 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')ClosingDatesArrayGetAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from ClosingDatesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual Response133 CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous555 > orderby, System.Collections.Generic.IEnumerable < Anonymous556 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ClosingDatesArrayGetAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ClosingDatesArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous555 > orderby, System.Collections.Generic.IEnumerable < Anonymous556 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ClosingDatesArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to ClosingDatesArray /// /// Created CustInvoiceCloseDate object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayPostAsync(CustInvoiceCloseDateInsert custInvoiceCloseDate_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous557 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')ClosingDatesArrayPostAsync(custInvoiceCloseDate_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to ClosingDatesArray /// /// Created CustInvoiceCloseDate object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual CustInvoiceCloseDate CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayPost(CustInvoiceCloseDateInsert custInvoiceCloseDate_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous557 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ClosingDatesArrayPostAsync(custInvoiceCloseDate_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to ClosingDatesArray /// /// Created CustInvoiceCloseDate object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArrayPostAsync(CustInvoiceCloseDateInsert custInvoiceCloseDate_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous557 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (custInvoiceCloseDate_InsertBodyParam == null) throw new System.ArgumentNullException("custInvoiceCloseDate_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ClosingDatesArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custInvoiceCloseDate_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from ClosingDatesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous558 > select, string customerNo, double lineNo) { return CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')GetAsync(select, customerNo, lineNo, System.Threading.CancellationToken.None); } /// /// Get entity from ClosingDatesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual CustInvoiceCloseDate CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')Get(System.Collections.Generic.IEnumerable < Anonymous558 > select, string customerNo, double lineNo) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')GetAsync(select, customerNo, lineNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from ClosingDatesArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous558 > select, string customerNo, double lineNo, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (lineNo == null) throw new System.ArgumentNullException("lineNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ClosingDatesArray(CustomerNo='{CustomerNo}',LineNo='{LineNo}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{LineNo}", System.Uri.EscapeDataString(ConvertToString(lineNo, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from ClosingDatesArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: LineNo /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')DeleteAsync(string if_Match, string customerId, string customerNo, double lineNo) { return CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')DeleteAsync(if_Match, customerId, customerNo, lineNo, System.Threading.CancellationToken.None); } /// /// Delete entity from ClosingDatesArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: LineNo /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')Delete(string if_Match, string customerId, string customerNo, double lineNo) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')DeleteAsync(if_Match, customerId, customerNo, lineNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from ClosingDatesArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: LineNo /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')DeleteAsync(string if_Match, string customerId, string customerNo, double lineNo, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (lineNo == null) throw new System.ArgumentNullException("lineNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ClosingDatesArray(CustomerNo='{CustomerNo}',LineNo='{LineNo}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{LineNo}", System.Uri.EscapeDataString(ConvertToString(lineNo, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in ClosingDatesArray /// /// Updated CustInvoiceCloseDate object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')PatchAsync(CustInvoiceCloseDateUpdate custInvoiceCloseDate_UpdateBodyParam, string if_Match, Prefer10 ? prefer, string customerId, string customerNo, double lineNo) { return CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')PatchAsync(custInvoiceCloseDate_UpdateBodyParam, if_Match, prefer, customerId, customerNo, lineNo, System.Threading.CancellationToken.None); } /// /// Update entity in ClosingDatesArray /// /// Updated CustInvoiceCloseDate object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual CustInvoiceCloseDate CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')Patch(CustInvoiceCloseDateUpdate custInvoiceCloseDate_UpdateBodyParam, string if_Match, Prefer10 ? prefer, string customerId, string customerNo, double lineNo) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ClosingDatesArray(CustomerNo = '', LineNo = '')PatchAsync(custInvoiceCloseDate_UpdateBodyParam, if_Match, prefer, customerId, customerNo, lineNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in ClosingDatesArray /// /// Updated CustInvoiceCloseDate object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: LineNo /// response body for entity type CustInvoiceCloseDate /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ClosingDatesArray(CustomerNo = '', LineNo = '')PatchAsync(CustInvoiceCloseDateUpdate custInvoiceCloseDate_UpdateBodyParam, string if_Match, Prefer10 ? prefer, string customerId, string customerNo, double lineNo, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (lineNo == null) throw new System.ArgumentNullException("lineNo"); if (custInvoiceCloseDate_UpdateBodyParam == null) throw new System.ArgumentNullException("custInvoiceCloseDate_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ClosingDatesArray(CustomerNo='{CustomerNo}',LineNo='{LineNo}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{LineNo}", System.Uri.EscapeDataString(ConvertToString(lineNo, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custInvoiceCloseDate_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from MultipleRebateCriteriaArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous559 > orderby, System.Collections.Generic.IEnumerable < Anonymous560 > select, System.Collections.Generic.IEnumerable < Anonymous561 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from MultipleRebateCriteriaArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual Response134 CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous559 > orderby, System.Collections.Generic.IEnumerable < Anonymous560 > select, System.Collections.Generic.IEnumerable < Anonymous561 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from MultipleRebateCriteriaArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array MultipleRebateCriteria /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous559 > orderby, System.Collections.Generic.IEnumerable < Anonymous560 > select, System.Collections.Generic.IEnumerable < Anonymous561 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/MultipleRebateCriteriaArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to MultipleRebateCriteriaArray /// /// Created MultipleRebateCriteria object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayPostAsync(MultipleRebateCriteriaInsert multipleRebateCriteria_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous562 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArrayPostAsync(multipleRebateCriteria_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to MultipleRebateCriteriaArray /// /// Created MultipleRebateCriteria object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual MultipleRebateCriteria CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayPost(MultipleRebateCriteriaInsert multipleRebateCriteria_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous562 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArrayPostAsync(multipleRebateCriteria_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to MultipleRebateCriteriaArray /// /// Created MultipleRebateCriteria object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArrayPostAsync(MultipleRebateCriteriaInsert multipleRebateCriteria_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous562 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (multipleRebateCriteria_InsertBodyParam == null) throw new System.ArgumentNullException("multipleRebateCriteria_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/MultipleRebateCriteriaArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(multipleRebateCriteria_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from MultipleRebateCriteriaArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous563 > select, string customerNo, string company) { return CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')GetAsync(select, customerNo, company, System.Threading.CancellationToken.None); } /// /// Get entity from MultipleRebateCriteriaArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual MultipleRebateCriteria CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')Get(System.Collections.Generic.IEnumerable < Anonymous563 > select, string customerNo, string company) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')GetAsync(select, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from MultipleRebateCriteriaArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: Company /// response body for entity type MultipleRebateCriteria /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous563 > select, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/MultipleRebateCriteriaArray(CustomerNo='{CustomerNo}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from MultipleRebateCriteriaArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')DeleteAsync(string if_Match, string customerId, string customerNo, string company) { return CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')DeleteAsync(if_Match, customerId, customerNo, company, System.Threading.CancellationToken.None); } /// /// Delete entity from MultipleRebateCriteriaArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')Delete(string if_Match, string customerId, string customerNo, string company) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')DeleteAsync(if_Match, customerId, customerNo, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from MultipleRebateCriteriaArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: Company /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MultipleRebateCriteriaArray(CustomerNo = '', Company = '')DeleteAsync(string if_Match, string customerId, string customerNo, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/MultipleRebateCriteriaArray(CustomerNo='{CustomerNo}',Company='{Company}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerPricelistArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous564 > orderby, System.Collections.Generic.IEnumerable < Anonymous565 > select, System.Collections.Generic.IEnumerable < Anonymous566 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerPricelistArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerPricelistArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual Response135 CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous564 > orderby, System.Collections.Generic.IEnumerable < Anonymous565 > select, System.Collections.Generic.IEnumerable < Anonymous566 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerPricelistArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerPricelistArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous564 > orderby, System.Collections.Generic.IEnumerable < Anonymous565 > select, System.Collections.Generic.IEnumerable < Anonymous566 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerPricelistArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerPricelistArray /// /// Created CustomerPricelist object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayPostAsync(CustomerPricelistInsert customerPricelist_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous567 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerPricelistArrayPostAsync(customerPricelist_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerPricelistArray /// /// Created CustomerPricelist object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual CustomerPricelist CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayPost(CustomerPricelistInsert customerPricelist_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous567 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerPricelistArrayPostAsync(customerPricelist_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerPricelistArray /// /// Created CustomerPricelist object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArrayPostAsync(CustomerPricelistInsert customerPricelist_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous567 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerPricelist_InsertBodyParam == null) throw new System.ArgumentNullException("customerPricelist_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerPricelistArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPricelist_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerPricelistArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous568 > select, string salesPriceGroupId, string currencyCode, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')GetAsync(select, salesPriceGroupId, currencyCode, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerPricelistArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual CustomerPricelist CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')Get(System.Collections.Generic.IEnumerable < Anonymous568 > select, string salesPriceGroupId, string currencyCode, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')GetAsync(select, salesPriceGroupId, currencyCode, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerPricelistArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: SalesPriceGroupId /// key: CurrencyCode /// key: CustomerId /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous568 > select, string salesPriceGroupId, string currencyCode, string customerId, System.Threading.CancellationToken cancellationToken) { if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerPricelistArray(SalesPriceGroupId='{SalesPriceGroupId}',CurrencyCode='{CurrencyCode}',CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerPricelistArray /// /// E-Tag /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')DeleteAsync(string if_Match, string customerId, string salesPriceGroupId, string currencyCode) { return CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')DeleteAsync(if_Match, customerId, salesPriceGroupId, currencyCode, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerPricelistArray /// /// E-Tag /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')Delete(string if_Match, string customerId, string salesPriceGroupId, string currencyCode) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')DeleteAsync(if_Match, customerId, salesPriceGroupId, currencyCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerPricelistArray /// /// E-Tag /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')DeleteAsync(string if_Match, string customerId, string salesPriceGroupId, string currencyCode, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerPricelistArray(SalesPriceGroupId='{SalesPriceGroupId}',CurrencyCode='{CurrencyCode}',CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerPricelistArray /// /// Updated CustomerPricelist object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')PatchAsync(CustomerPricelistUpdate customerPricelist_UpdateBodyParam, string if_Match, Prefer11 ? prefer, string customerId, string salesPriceGroupId, string currencyCode) { return CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')PatchAsync(customerPricelist_UpdateBodyParam, if_Match, prefer, customerId, salesPriceGroupId, currencyCode, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerPricelistArray /// /// Updated CustomerPricelist object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual CustomerPricelist CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')Patch(CustomerPricelistUpdate customerPricelist_UpdateBodyParam, string if_Match, Prefer11 ? prefer, string customerId, string salesPriceGroupId, string currencyCode) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')PatchAsync(customerPricelist_UpdateBodyParam, if_Match, prefer, customerId, salesPriceGroupId, currencyCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerPricelistArray /// /// Updated CustomerPricelist object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: SalesPriceGroupId /// key: CurrencyCode /// response body for entity type CustomerPricelist /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerPricelistArray(SalesPriceGroupId = '', CurrencyCode = '', CustomerId = '')PatchAsync(CustomerPricelistUpdate customerPricelist_UpdateBodyParam, string if_Match, Prefer11 ? prefer, string customerId, string salesPriceGroupId, string currencyCode, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); if (customerPricelist_UpdateBodyParam == null) throw new System.ArgumentNullException("customerPricelist_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerPricelistArray(SalesPriceGroupId='{SalesPriceGroupId}',CurrencyCode='{CurrencyCode}',CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPricelist_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustDefComReceiverArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous569 > orderby, System.Collections.Generic.IEnumerable < Anonymous570 > select, System.Collections.Generic.IEnumerable < Anonymous571 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustDefComReceiverArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual Response136 CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous569 > orderby, System.Collections.Generic.IEnumerable < Anonymous570 > select, System.Collections.Generic.IEnumerable < Anonymous571 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustDefComReceiverArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustDefComReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous569 > orderby, System.Collections.Generic.IEnumerable < Anonymous570 > select, System.Collections.Generic.IEnumerable < Anonymous571 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustDefComReceiverArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustDefComReceiverArray /// /// Created CustDefComReceiver object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayPostAsync(CustDefComReceiverInsert custDefComReceiver_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous572 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArrayPostAsync(custDefComReceiver_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustDefComReceiverArray /// /// Created CustDefComReceiver object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual CustDefComReceiver CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayPost(CustDefComReceiverInsert custDefComReceiver_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous572 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArrayPostAsync(custDefComReceiver_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustDefComReceiverArray /// /// Created CustDefComReceiver object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArrayPostAsync(CustDefComReceiverInsert custDefComReceiver_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous572 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (custDefComReceiver_InsertBodyParam == null) throw new System.ArgumentNullException("custDefComReceiver_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustDefComReceiverArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custDefComReceiver_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustDefComReceiverArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous573 > select, string customerNo, string commissionReceiver) { return CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')GetAsync(select, customerNo, commissionReceiver, System.Threading.CancellationToken.None); } /// /// Get entity from CustDefComReceiverArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual CustDefComReceiver CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')Get(System.Collections.Generic.IEnumerable < Anonymous573 > select, string customerNo, string commissionReceiver) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')GetAsync(select, customerNo, commissionReceiver, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustDefComReceiverArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: CommissionReceiver /// response body for entity type CustDefComReceiver /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous573 > select, string customerNo, string commissionReceiver, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (commissionReceiver == null) throw new System.ArgumentNullException("commissionReceiver"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustDefComReceiverArray(CustomerNo='{CustomerNo}',CommissionReceiver='{CommissionReceiver}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommissionReceiver}", System.Uri.EscapeDataString(ConvertToString(commissionReceiver, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustDefComReceiverArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: CommissionReceiver /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')DeleteAsync(string if_Match, string customerId, string customerNo, string commissionReceiver) { return CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')DeleteAsync(if_Match, customerId, customerNo, commissionReceiver, System.Threading.CancellationToken.None); } /// /// Delete entity from CustDefComReceiverArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: CommissionReceiver /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')Delete(string if_Match, string customerId, string customerNo, string commissionReceiver) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')DeleteAsync(if_Match, customerId, customerNo, commissionReceiver, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustDefComReceiverArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: CommissionReceiver /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustDefComReceiverArray(CustomerNo = '', CommissionReceiver = '')DeleteAsync(string if_Match, string customerId, string customerNo, string commissionReceiver, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (commissionReceiver == null) throw new System.ArgumentNullException("commissionReceiver"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustDefComReceiverArray(CustomerNo='{CustomerNo}',CommissionReceiver='{CommissionReceiver}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommissionReceiver}", System.Uri.EscapeDataString(ConvertToString(commissionReceiver, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerChargeArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous574 > orderby, System.Collections.Generic.IEnumerable < Anonymous575 > select, System.Collections.Generic.IEnumerable < Anonymous576 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerChargeArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerChargeArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCharge /// A server side error occurred. public virtual Response137 CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous574 > orderby, System.Collections.Generic.IEnumerable < Anonymous575 > select, System.Collections.Generic.IEnumerable < Anonymous576 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerChargeArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerChargeArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous574 > orderby, System.Collections.Generic.IEnumerable < Anonymous575 > select, System.Collections.Generic.IEnumerable < Anonymous576 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerChargeArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerChargeArray /// /// Created CustomerCharge object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayPostAsync(CustomerChargeInsert customerCharge_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous577 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerChargeArrayPostAsync(customerCharge_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerChargeArray /// /// Created CustomerCharge object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCharge /// A server side error occurred. public virtual CustomerCharge CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayPost(CustomerChargeInsert customerCharge_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous577 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerChargeArrayPostAsync(customerCharge_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerChargeArray /// /// Created CustomerCharge object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArrayPostAsync(CustomerChargeInsert customerCharge_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous577 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerCharge_InsertBodyParam == null) throw new System.ArgumentNullException("customerCharge_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerChargeArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerCharge_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerChargeArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous578 > select, string customerId, string contract, string chargeType) { return CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')GetAsync(select, customerId, contract, chargeType, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerChargeArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual CustomerCharge CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')Get(System.Collections.Generic.IEnumerable < Anonymous578 > select, string customerId, string contract, string chargeType) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')GetAsync(select, customerId, contract, chargeType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerChargeArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous578 > select, string customerId, string contract, string chargeType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (contract == null) throw new System.ArgumentNullException("contract"); if (chargeType == null) throw new System.ArgumentNullException("chargeType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerChargeArray(CustomerId='{CustomerId}',Contract='{Contract}',ChargeType='{ChargeType}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerChargeArray /// /// E-Tag /// key: CustomerId /// key: Contract /// key: ChargeType /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')DeleteAsync(string if_Match, string customerId, string contract, string chargeType) { return CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')DeleteAsync(if_Match, customerId, contract, chargeType, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerChargeArray /// /// E-Tag /// key: CustomerId /// key: Contract /// key: ChargeType /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')Delete(string if_Match, string customerId, string contract, string chargeType) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')DeleteAsync(if_Match, customerId, contract, chargeType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerChargeArray /// /// E-Tag /// key: CustomerId /// key: Contract /// key: ChargeType /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')DeleteAsync(string if_Match, string customerId, string contract, string chargeType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (contract == null) throw new System.ArgumentNullException("contract"); if (chargeType == null) throw new System.ArgumentNullException("chargeType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerChargeArray(CustomerId='{CustomerId}',Contract='{Contract}',ChargeType='{ChargeType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerChargeArray /// /// Updated CustomerCharge object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')PatchAsync(CustomerChargeUpdate customerCharge_UpdateBodyParam, string if_Match, Prefer12 ? prefer, string customerId, string contract, string chargeType) { return CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')PatchAsync(customerCharge_UpdateBodyParam, if_Match, prefer, customerId, contract, chargeType, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerChargeArray /// /// Updated CustomerCharge object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual CustomerCharge CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')Patch(CustomerChargeUpdate customerCharge_UpdateBodyParam, string if_Match, Prefer12 ? prefer, string customerId, string contract, string chargeType) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')PatchAsync(customerCharge_UpdateBodyParam, if_Match, prefer, customerId, contract, chargeType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerChargeArray /// /// Updated CustomerCharge object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Contract /// key: ChargeType /// response body for entity type CustomerCharge /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerChargeArray(CustomerId = '', Contract = '', ChargeType = '')PatchAsync(CustomerChargeUpdate customerCharge_UpdateBodyParam, string if_Match, Prefer12 ? prefer, string customerId, string contract, string chargeType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (contract == null) throw new System.ArgumentNullException("contract"); if (chargeType == null) throw new System.ArgumentNullException("chargeType"); if (customerCharge_UpdateBodyParam == null) throw new System.ArgumentNullException("customerCharge_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerChargeArray(CustomerId='{CustomerId}',Contract='{Contract}',ChargeType='{ChargeType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerCharge_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerAssortmentsArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous579 > orderby, System.Collections.Generic.IEnumerable < Anonymous580 > select, System.Collections.Generic.IEnumerable < Anonymous581 > expand, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerAssortmentsArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual Response51 CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous579 > orderby, System.Collections.Generic.IEnumerable < Anonymous580 > select, System.Collections.Generic.IEnumerable < Anonymous581 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerAssortmentsArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous579 > orderby, System.Collections.Generic.IEnumerable < Anonymous580 > select, System.Collections.Generic.IEnumerable < Anonymous581 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerAssortmentsArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerAssortmentsArray /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayPostAsync(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous582 > prefer, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArrayPostAsync(customerAssortmentStruct_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerAssortmentsArray /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayPost(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous582 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArrayPostAsync(customerAssortmentStruct_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerAssortmentsArray /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArrayPostAsync(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous582 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerAssortmentStruct_InsertBodyParam == null) throw new System.ArgumentNullException("customerAssortmentStruct_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerAssortmentsArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerAssortmentStruct_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerAssortmentsArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous583 > select, string customerNo, string assortmentId) { return CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')GetAsync(select, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerAssortmentsArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')Get(System.Collections.Generic.IEnumerable < Anonymous583 > select, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')GetAsync(select, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerAssortmentsArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous583 > select, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerAssortmentsArray(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerAssortmentsArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')DeleteAsync(string if_Match, string customerId, string customerNo, string assortmentId) { return CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')DeleteAsync(if_Match, customerId, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerAssortmentsArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual void CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')Delete(string if_Match, string customerId, string customerNo, string assortmentId) { System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')DeleteAsync(if_Match, customerId, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerAssortmentsArray /// /// E-Tag /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')DeleteAsync(string if_Match, string customerId, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerAssortmentsArray(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerAssortmentsArray /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')PatchAsync(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer13 ? prefer, string customerId, string customerNo, string assortmentId) { return CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')PatchAsync(customerAssortmentStruct_UpdateBodyParam, if_Match, prefer, customerId, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerAssortmentsArray /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')Patch(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer13 ? prefer, string customerId, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')PatchAsync(customerAssortmentStruct_UpdateBodyParam, if_Match, prefer, customerId, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerAssortmentsArray /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerAssortmentsArray(CustomerNo = '', AssortmentId = '')PatchAsync(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer13 ? prefer, string customerId, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); if (customerAssortmentStruct_UpdateBodyParam == null) throw new System.ArgumentNullException("customerAssortmentStruct_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerAssortmentsArray(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerAssortmentStruct_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from PersonInfoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array PersonInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PersonInfoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous584 > orderby, System.Collections.Generic.IEnumerable < Anonymous585 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')PersonInfoRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from PersonInfoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array PersonInfo /// A server side error occurred. public virtual Response77 CustOrdCustomerSet(CustomerId= '')PersonInfoRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous584 > orderby, System.Collections.Generic.IEnumerable < Anonymous585 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')PersonInfoRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from PersonInfoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array PersonInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PersonInfoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous584 > orderby, System.Collections.Generic.IEnumerable < Anonymous585 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/PersonInfoRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustGrpRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustGrpRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous586 > orderby, System.Collections.Generic.IEnumerable < Anonymous587 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustGrpRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustGrpRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerGroup /// A server side error occurred. public virtual Response90 CustOrdCustomerSet(CustomerId= '')CustGrpRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous586 > orderby, System.Collections.Generic.IEnumerable < Anonymous587 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustGrpRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustGrpRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustGrpRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous586 > orderby, System.Collections.Generic.IEnumerable < Anonymous587 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustGrpRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerNoPayRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerNoPayRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous588 > orderby, System.Collections.Generic.IEnumerable < Anonymous589 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustomerNoPayRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerNoPayRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual Response31 CustOrdCustomerSet(CustomerId= '')CustomerNoPayRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous588 > orderby, System.Collections.Generic.IEnumerable < Anonymous589 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustomerNoPayRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerNoPayRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdCust1 /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustomerNoPayRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous588 > orderby, System.Collections.Generic.IEnumerable < Anonymous589 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustomerNoPayRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustPriceGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustPriceGroupIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous590 > orderby, System.Collections.Generic.IEnumerable < Anonymous591 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustPriceGroupIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustPriceGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual Response68 CustOrdCustomerSet(CustomerId= '')CustPriceGroupIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous590 > orderby, System.Collections.Generic.IEnumerable < Anonymous591 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustPriceGroupIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustPriceGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustPriceGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustPriceGroupIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous590 > orderby, System.Collections.Generic.IEnumerable < Anonymous591 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustPriceGroupIdRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustRefRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustRefRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous592 > orderby, System.Collections.Generic.IEnumerable < Anonymous593 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CustRefRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustRefRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual Response30 CustOrdCustomerSet(CustomerId= '')CustRefRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous592 > orderby, System.Collections.Generic.IEnumerable < Anonymous593 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CustRefRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustRefRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustInfoContactLovPub /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CustRefRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous592 > orderby, System.Collections.Generic.IEnumerable < Anonymous593 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CustRefRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from MarketCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesMarket /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MarketCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous594 > orderby, System.Collections.Generic.IEnumerable < Anonymous595 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')MarketCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from MarketCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesMarket /// A server side error occurred. public virtual Response73 CustOrdCustomerSet(CustomerId= '')MarketCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous594 > orderby, System.Collections.Generic.IEnumerable < Anonymous595 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')MarketCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from MarketCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesMarket /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')MarketCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous594 > orderby, System.Collections.Generic.IEnumerable < Anonymous595 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/MarketCodeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from DiscountTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')DiscountTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous596 > orderby, System.Collections.Generic.IEnumerable < Anonymous597 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')DiscountTypeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from DiscountTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual Response104 CustOrdCustomerSet(CustomerId= '')DiscountTypeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous596 > orderby, System.Collections.Generic.IEnumerable < Anonymous597 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')DiscountTypeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from DiscountTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesDiscountType /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')DiscountTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous596 > orderby, System.Collections.Generic.IEnumerable < Anonymous597 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/DiscountTypeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CreditControlGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CreditControlGroupIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous598 > orderby, System.Collections.Generic.IEnumerable < Anonymous599 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CreditControlGroupIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CreditControlGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual Response105 CustOrdCustomerSet(CustomerId= '')CreditControlGroupIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous598 > orderby, System.Collections.Generic.IEnumerable < Anonymous599 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CreditControlGroupIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CreditControlGroupIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CreditControlGroup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CreditControlGroupIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous598 > orderby, System.Collections.Generic.IEnumerable < Anonymous599 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CreditControlGroupIdRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CurrencyCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous600 > orderby, System.Collections.Generic.IEnumerable < Anonymous601 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')CurrencyCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual Response83 CustOrdCustomerSet(CustomerId= '')CurrencyCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous600 > orderby, System.Collections.Generic.IEnumerable < Anonymous601 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')CurrencyCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array IsoCurrency /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')CurrencyCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous600 > orderby, System.Collections.Generic.IEnumerable < Anonymous601 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/CurrencyCodeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from HierarchyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')HierarchyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous602 > orderby, System.Collections.Generic.IEnumerable < Anonymous603 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')HierarchyRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from HierarchyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual Response95 CustOrdCustomerSet(CustomerId= '')HierarchyRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous602 > orderby, System.Collections.Generic.IEnumerable < Anonymous603 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')HierarchyRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from HierarchyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')HierarchyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous602 > orderby, System.Collections.Generic.IEnumerable < Anonymous603 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/HierarchyRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from HierarchyLevelRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')HierarchyLevelRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous604 > orderby, System.Collections.Generic.IEnumerable < Anonymous605 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')HierarchyLevelRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from HierarchyLevelRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual Response85 CustOrdCustomerSet(CustomerId= '')HierarchyLevelRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous604 > orderby, System.Collections.Generic.IEnumerable < Anonymous605 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')HierarchyLevelRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from HierarchyLevelRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerHierarchyLevel /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')HierarchyLevelRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous604 > orderby, System.Collections.Generic.IEnumerable < Anonymous605 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/HierarchyLevelRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from SalesmanCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')SalesmanCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous606 > orderby, System.Collections.Generic.IEnumerable < Anonymous607 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')SalesmanCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from SalesmanCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual Response32 CustOrdCustomerSet(CustomerId= '')SalesmanCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous606 > orderby, System.Collections.Generic.IEnumerable < Anonymous607 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')SalesmanCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from SalesmanCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array SalesPartSalesmanLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')SalesmanCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous606 > orderby, System.Collections.Generic.IEnumerable < Anonymous607 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/SalesmanCodeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from AcquisitionSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')AcquisitionSiteRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous608 > orderby, System.Collections.Generic.IEnumerable < Anonymous609 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')AcquisitionSiteRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from AcquisitionSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual Response72 CustOrdCustomerSet(CustomerId= '')AcquisitionSiteRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous608 > orderby, System.Collections.Generic.IEnumerable < Anonymous609 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')AcquisitionSiteRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from AcquisitionSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')AcquisitionSiteRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous608 > orderby, System.Collections.Generic.IEnumerable < Anonymous609 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/AcquisitionSiteRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from OrderIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrderType /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')OrderIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous610 > orderby, System.Collections.Generic.IEnumerable < Anonymous611 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')OrderIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from OrderIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrderType /// A server side error occurred. public virtual Response102 CustOrdCustomerSet(CustomerId= '')OrderIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous610 > orderby, System.Collections.Generic.IEnumerable < Anonymous611 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')OrderIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from OrderIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrderType /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')OrderIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous610 > orderby, System.Collections.Generic.IEnumerable < Anonymous611 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/OrderIdRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ForwardAgentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ForwardAgentIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous612 > orderby, System.Collections.Generic.IEnumerable < Anonymous613 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')ForwardAgentIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from ForwardAgentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual Response76 CustOrdCustomerSet(CustomerId= '')ForwardAgentIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous612 > orderby, System.Collections.Generic.IEnumerable < Anonymous613 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')ForwardAgentIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ForwardAgentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array ForwarderInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')ForwardAgentIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous612 > orderby, System.Collections.Generic.IEnumerable < Anonymous613 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/ForwardAgentIdRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from TemplateIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TemplateIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous614 > orderby, System.Collections.Generic.IEnumerable < Anonymous615 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')TemplateIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from TemplateIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual Response91 CustOrdCustomerSet(CustomerId= '')TemplateIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous614 > orderby, System.Collections.Generic.IEnumerable < Anonymous615 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')TemplateIdRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from TemplateIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerOrderTemplate /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')TemplateIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous614 > orderby, System.Collections.Generic.IEnumerable < Anonymous615 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/TemplateIdRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from PrintControlCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PrintControlCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous616 > orderby, System.Collections.Generic.IEnumerable < Anonymous617 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')PrintControlCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from PrintControlCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual Response75 CustOrdCustomerSet(CustomerId= '')PrintControlCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous616 > orderby, System.Collections.Generic.IEnumerable < Anonymous617 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')PrintControlCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from PrintControlCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustOrdPrintControl /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')PrintControlCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous616 > orderby, System.Collections.Generic.IEnumerable < Anonymous617 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/PrintControlCodeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from EdiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous618 > orderby, System.Collections.Generic.IEnumerable < Anonymous619 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')EdiAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from EdiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual Response33 CustOrdCustomerSet(CustomerId= '')EdiAutoApprovalUserRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous618 > orderby, System.Collections.Generic.IEnumerable < Anonymous619 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')EdiAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from EdiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array EdiApprovalUserLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous618 > orderby, System.Collections.Generic.IEnumerable < Anonymous619 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/EdiAutoApprovalUserRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from EdiAuthorizeCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiAuthorizeCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous620 > orderby, System.Collections.Generic.IEnumerable < Anonymous621 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')EdiAuthorizeCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from EdiAuthorizeCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual Response34 CustOrdCustomerSet(CustomerId= '')EdiAuthorizeCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous620 > orderby, System.Collections.Generic.IEnumerable < Anonymous621 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')EdiAuthorizeCodeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from EdiAuthorizeCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array OrderCoordinatorLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiAuthorizeCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous620 > orderby, System.Collections.Generic.IEnumerable < Anonymous621 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/EdiAuthorizeCodeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from EdiSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiSiteRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous622 > orderby, System.Collections.Generic.IEnumerable < Anonymous623 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')EdiSiteRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from EdiSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual Response72 CustOrdCustomerSet(CustomerId= '')EdiSiteRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous622 > orderby, System.Collections.Generic.IEnumerable < Anonymous623 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')EdiSiteRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from EdiSiteRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array Site /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')EdiSiteRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous622 > orderby, System.Collections.Generic.IEnumerable < Anonymous623 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/EdiSiteRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from RecAdvAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')RecAdvAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous624 > orderby, System.Collections.Generic.IEnumerable < Anonymous625 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')RecAdvAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from RecAdvAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual Response71 CustOrdCustomerSet(CustomerId= '')RecAdvAutoApprovalUserRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous624 > orderby, System.Collections.Generic.IEnumerable < Anonymous625 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')RecAdvAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from RecAdvAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')RecAdvAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous624 > orderby, System.Collections.Generic.IEnumerable < Anonymous625 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/RecAdvAutoApprovalUserRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from SbiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')SbiAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous626 > orderby, System.Collections.Generic.IEnumerable < Anonymous627 > select, string customerId) { return CustOrdCustomerSet(CustomerId = '')SbiAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from SbiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual Response71 CustOrdCustomerSet(CustomerId= '')SbiAutoApprovalUserRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous626 > orderby, System.Collections.Generic.IEnumerable < Anonymous627 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustOrdCustomerSet(CustomerId = '')SbiAutoApprovalUserRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from SbiAutoApprovalUserRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array FndUser /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustOrdCustomerSet(CustomerId= '')SbiAutoApprovalUserRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous626 > orderby, System.Collections.Generic.IEnumerable < Anonymous627 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustOrdCustomerSet(CustomerId='{CustomerId}')/SbiAutoApprovalUserRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerAssortmentStructSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return CustomerAssortmentStructSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerAssortmentStructSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual Response51 CustomerAssortmentStructSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerAssortmentStructSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerAssortmentStructSet /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSetPostAsync(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return CustomerAssortmentStructSetPostAsync(customerAssortmentStruct_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerAssortmentStructSet /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSetPost(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSetPostAsync(customerAssortmentStruct_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerAssortmentStructSet /// /// Created CustomerAssortmentStruct object /// Prefer: return=minimal /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSetPostAsync(CustomerAssortmentStructInsert customerAssortmentStruct_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (customerAssortmentStruct_InsertBodyParam == null) throw new System.ArgumentNullException("customerAssortmentStruct_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerAssortmentStruct_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerAssortmentStructSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous632 > select, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')GetAsync(select, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerAssortmentStructSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')Get(System.Collections.Generic.IEnumerable < Anonymous632 > select, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')GetAsync(select, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerAssortmentStructSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous632 > select, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerAssortmentStructSet /// /// E-Tag /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')DeleteAsync(string if_Match, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')DeleteAsync(if_Match, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerAssortmentStructSet /// /// E-Tag /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual void CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')Delete(string if_Match, string customerNo, string assortmentId) { System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')DeleteAsync(if_Match, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerAssortmentStructSet /// /// E-Tag /// key: CustomerNo /// key: AssortmentId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')DeleteAsync(string if_Match, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerAssortmentStructSet /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')PatchAsync(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer14 ? prefer, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')PatchAsync(customerAssortmentStruct_UpdateBodyParam, if_Match, prefer, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerAssortmentStructSet /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')Patch(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer14 ? prefer, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')PatchAsync(customerAssortmentStruct_UpdateBodyParam, if_Match, prefer, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerAssortmentStructSet /// /// Updated CustomerAssortmentStruct object /// E-Tag /// Prefer: return=minimal /// key: CustomerNo /// key: AssortmentId /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')PatchAsync(CustomerAssortmentStructUpdate customerAssortmentStruct_UpdateBodyParam, string if_Match, Prefer14 ? prefer, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); if (customerAssortmentStruct_UpdateBodyParam == null) throw new System.ArgumentNullException("customerAssortmentStruct_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerAssortmentStruct_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')IfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous633 > select, string customerNo, string assortmentId, string copyValues, string if_Match) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')IfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(select, customerNo, assortmentId, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')IfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)(System.Collections.Generic.IEnumerable < Anonymous633 > select, string customerNo, string assortmentId, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')IfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(select, customerNo, assortmentId, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')IfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous633 > select, string customerNo, string assortmentId, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')/IfsApp.CustomerHandling.CustomerAssortmentStruct_DefaultCopy(CopyValues=@CopyValues)?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous634 > select, string copyValues, string if_Match) { return CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues= @CopyValues)(System.Collections.Generic.IEnumerable select, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerAssortmentStructCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous634 > select, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet/IfsApp.CustomerHandling.CustomerAssortmentStruct_DefaultCopy(CopyValues=@CopyValues)?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefault()Async(System.Collections.Generic.IEnumerable < Anonymous635 > select, string if_Match) { return CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual CustomerAssortmentStruct CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerAssortmentStruct /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSetIfsApp_CustomerHandling_CustomerAssortmentStructDefault()Async(System.Collections.Generic.IEnumerable < Anonymous635 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet/IfsApp.CustomerHandling.CustomerAssortmentStruct_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerNo /// key: AssortmentId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')CustomerNoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous636 > orderby, System.Collections.Generic.IEnumerable < Anonymous637 > select, System.Collections.Generic.IEnumerable < Anonymous638 > expand, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')CustomerNoRefAsync(top, skip, count, filter, orderby, select, expand, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerNo /// key: AssortmentId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual Response50 CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')CustomerNoRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous636 > orderby, System.Collections.Generic.IEnumerable < Anonymous637 > select, System.Collections.Generic.IEnumerable < Anonymous638 > expand, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')CustomerNoRefAsync(top, skip, count, filter, orderby, select, expand, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerNo /// key: AssortmentId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')CustomerNoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous636 > orderby, System.Collections.Generic.IEnumerable < Anonymous637 > select, System.Collections.Generic.IEnumerable < Anonymous638 > expand, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')/CustomerNoRef?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from AssortmentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')AssortmentIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous639 > orderby, System.Collections.Generic.IEnumerable < Anonymous640 > select, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')AssortmentIdRefAsync(top, skip, count, filter, orderby, select, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entities from AssortmentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual Response37 CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')AssortmentIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous639 > orderby, System.Collections.Generic.IEnumerable < Anonymous640 > select, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')AssortmentIdRefAsync(top, skip, count, filter, orderby, select, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from AssortmentIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')AssortmentIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous639 > orderby, System.Collections.Generic.IEnumerable < Anonymous640 > select, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')/AssortmentIdRef?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ClassificationStandardRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')ClassificationStandardRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous641 > orderby, System.Collections.Generic.IEnumerable < Anonymous642 > select, string customerNo, string assortmentId) { return CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')ClassificationStandardRefAsync(top, skip, count, filter, orderby, select, customerNo, assortmentId, System.Threading.CancellationToken.None); } /// /// Get entities from ClassificationStandardRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual Response37 CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')ClassificationStandardRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous641 > orderby, System.Collections.Generic.IEnumerable < Anonymous642 > select, string customerNo, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await CustomerAssortmentStructSet(CustomerNo = '', AssortmentId = '')ClassificationStandardRefAsync(top, skip, count, filter, orderby, select, customerNo, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ClassificationStandardRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerNo /// key: AssortmentId /// response body for entity array AssortmentClassificationLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerAssortmentStructSet(CustomerNo= '', AssortmentId= '')ClassificationStandardRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous641 > orderby, System.Collections.Generic.IEnumerable < Anonymous642 > select, string customerNo, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerAssortmentStructSet(CustomerNo='{CustomerNo}',AssortmentId='{AssortmentId}')/ClassificationStandardRef?"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ConectCustAssortmentVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return ConectCustAssortmentVirtualSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from ConectCustAssortmentVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual Response46 ConectCustAssortmentVirtualSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ConectCustAssortmentVirtualSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to ConectCustAssortmentVirtualSet /// /// Created ConectCustAssortmentVirtual object /// Prefer: return=minimal /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSetPostAsync(ConectCustAssortmentVirtualInsert conectCustAssortmentVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return ConectCustAssortmentVirtualSetPostAsync(conectCustAssortmentVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to ConectCustAssortmentVirtualSet /// /// Created ConectCustAssortmentVirtual object /// Prefer: return=minimal /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual ConectCustAssortmentVirtual ConectCustAssortmentVirtualSetPost(ConectCustAssortmentVirtualInsert conectCustAssortmentVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSetPostAsync(conectCustAssortmentVirtual_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to ConectCustAssortmentVirtualSet /// /// Created ConectCustAssortmentVirtual object /// Prefer: return=minimal /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSetPostAsync(ConectCustAssortmentVirtualInsert conectCustAssortmentVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (conectCustAssortmentVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("conectCustAssortmentVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(conectCustAssortmentVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from ConectCustAssortmentVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous647 > select, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from ConectCustAssortmentVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual ConectCustAssortmentVirtual ConectCustAssortmentVirtualSet(Objkey= '')Get(System.Collections.Generic.IEnumerable < Anonymous647 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from ConectCustAssortmentVirtualSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous647 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from ConectCustAssortmentVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')DeleteAsync(string if_Match, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from ConectCustAssortmentVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void ConectCustAssortmentVirtualSet(Objkey= '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from ConectCustAssortmentVirtualSet /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in ConectCustAssortmentVirtualSet /// /// Updated ConectCustAssortmentVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')PatchAsync(ConectCustAssortmentVirtualUpdate conectCustAssortmentVirtual_UpdateBodyParam, string if_Match, Prefer15 ? prefer, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')PatchAsync(conectCustAssortmentVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in ConectCustAssortmentVirtualSet /// /// Updated ConectCustAssortmentVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual ConectCustAssortmentVirtual ConectCustAssortmentVirtualSet(Objkey= '')Patch(ConectCustAssortmentVirtualUpdate conectCustAssortmentVirtual_UpdateBodyParam, string if_Match, Prefer15 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')PatchAsync(conectCustAssortmentVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in ConectCustAssortmentVirtualSet /// /// Updated ConectCustAssortmentVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')PatchAsync(ConectCustAssortmentVirtualUpdate conectCustAssortmentVirtual_UpdateBodyParam, string if_Match, Prefer15 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (conectCustAssortmentVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("conectCustAssortmentVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(conectCustAssortmentVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action ConnectCustomers /// /// E-Tag /// key: Objkey /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')IfsApp_CustomerHandling_ConectCustAssortmentVirtualConnectCustomersAsync(string if_Match, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')IfsApp_CustomerHandling_ConectCustAssortmentVirtualConnectCustomersAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Invoke action ConnectCustomers /// /// E-Tag /// key: Objkey /// Accepted /// A server side error occurred. public virtual void ConectCustAssortmentVirtualSet(Objkey= '')IfsApp_CustomerHandling_ConectCustAssortmentVirtualConnectCustomers(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')IfsApp_CustomerHandling_ConectCustAssortmentVirtualConnectCustomersAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action ConnectCustomers /// /// E-Tag /// key: Objkey /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')IfsApp_CustomerHandling_ConectCustAssortmentVirtualConnectCustomersAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/IfsApp.CustomerHandling.ConectCustAssortmentVirtual_ConnectCustomers"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSetIfsApp_CustomerHandling_ConectCustAssortmentVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous648 > select, string if_Match) { return ConectCustAssortmentVirtualSetIfsApp_CustomerHandling_ConectCustAssortmentVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual ConectCustAssortmentVirtual ConectCustAssortmentVirtualSetIfsApp_CustomerHandling_ConectCustAssortmentVirtualDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSetIfsApp_CustomerHandling_ConectCustAssortmentVirtualDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type ConectCustAssortmentVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSetIfsApp_CustomerHandling_ConectCustAssortmentVirtualDefault()Async(System.Collections.Generic.IEnumerable < Anonymous648 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet/IfsApp.CustomerHandling.ConectCustAssortmentVirtual_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous649 > orderby, System.Collections.Generic.IEnumerable < Anonymous650 > select, System.Collections.Generic.IEnumerable < Anonymous651 > expand, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerArrayGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual Response47 ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous649 > orderby, System.Collections.Generic.IEnumerable < Anonymous650 > select, System.Collections.Generic.IEnumerable < Anonymous651 > expand, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerArrayGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous649 > orderby, System.Collections.Generic.IEnumerable < Anonymous650 > select, System.Collections.Generic.IEnumerable < Anonymous651 > expand, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerArray?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerArray /// /// Created ConnectCustomerVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayPostAsync(ConnectCustomerVirtualInsert connectCustomerVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous652 > prefer, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerArrayPostAsync(connectCustomerVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerArray /// /// Created ConnectCustomerVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual ConnectCustomerVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayPost(ConnectCustomerVirtualInsert connectCustomerVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous652 > prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerArrayPostAsync(connectCustomerVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerArray /// /// Created ConnectCustomerVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArrayPostAsync(ConnectCustomerVirtualInsert connectCustomerVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous652 > prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (connectCustomerVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("connectCustomerVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerArray"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(connectCustomerVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous653 > select, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual ConnectCustomerVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')Get(System.Collections.Generic.IEnumerable < Anonymous653 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous653 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerArray(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')DeleteAsync(string if_Match, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerArray /// /// Updated ConnectCustomerVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')PatchAsync(ConnectCustomerVirtualUpdate connectCustomerVirtual_UpdateBodyParam, string if_Match, Prefer16 ? prefer, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')PatchAsync(connectCustomerVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerArray /// /// Updated ConnectCustomerVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual ConnectCustomerVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')Patch(ConnectCustomerVirtualUpdate connectCustomerVirtual_UpdateBodyParam, string if_Match, Prefer16 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerArray(Objkey = '')PatchAsync(connectCustomerVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerArray /// /// Updated ConnectCustomerVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerArray(Objkey = '')PatchAsync(ConnectCustomerVirtualUpdate connectCustomerVirtual_UpdateBodyParam, string if_Match, Prefer16 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (connectCustomerVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("connectCustomerVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(connectCustomerVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerListArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous654 > orderby, System.Collections.Generic.IEnumerable < Anonymous655 > select, System.Collections.Generic.IEnumerable < Anonymous656 > expand, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArrayGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerListArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual Response48 ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous654 > orderby, System.Collections.Generic.IEnumerable < Anonymous655 > select, System.Collections.Generic.IEnumerable < Anonymous656 > expand, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArrayGetAsync(top, skip, count, filter, orderby, select, expand, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerListArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: Objkey /// response body for entity array ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous654 > orderby, System.Collections.Generic.IEnumerable < Anonymous655 > select, System.Collections.Generic.IEnumerable < Anonymous656 > expand, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerListArray?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerListArray /// /// Created ConnectCustomerListVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayPostAsync(ConnectCustomerListVirtualInsert connectCustomerListVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous657 > prefer, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArrayPostAsync(connectCustomerListVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerListArray /// /// Created ConnectCustomerListVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual ConnectCustomerListVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayPost(ConnectCustomerListVirtualInsert connectCustomerListVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous657 > prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArrayPostAsync(connectCustomerListVirtual_InsertBodyParam, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerListArray /// /// Created ConnectCustomerListVirtual object /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArrayPostAsync(ConnectCustomerListVirtualInsert connectCustomerListVirtual_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous657 > prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (connectCustomerListVirtual_InsertBodyParam == null) throw new System.ArgumentNullException("connectCustomerListVirtual_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerListArray"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(connectCustomerListVirtual_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerListArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous658 > select, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerListArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual ConnectCustomerListVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')Get(System.Collections.Generic.IEnumerable < Anonymous658 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')GetAsync(select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerListArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous658 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerListArray(Objkey='{Objkey}')?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerListArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')DeleteAsync(string if_Match, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerListArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual void ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')Delete(string if_Match, string objkey) { System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')DeleteAsync(if_Match, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerListArray /// /// E-Tag /// key: Objkey /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')DeleteAsync(string if_Match, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerListArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerListArray /// /// Updated ConnectCustomerListVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')PatchAsync(ConnectCustomerListVirtualUpdate connectCustomerListVirtual_UpdateBodyParam, string if_Match, Prefer17 ? prefer, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')PatchAsync(connectCustomerListVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerListArray /// /// Updated ConnectCustomerListVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual ConnectCustomerListVirtual ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')Patch(ConnectCustomerListVirtualUpdate connectCustomerListVirtual_UpdateBodyParam, string if_Match, Prefer17 ? prefer, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')CustomerListArray(Objkey = '')PatchAsync(connectCustomerListVirtual_UpdateBodyParam, if_Match, prefer, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerListArray /// /// Updated ConnectCustomerListVirtual object /// E-Tag /// Prefer: return=minimal /// key: Objkey /// response body for entity type ConnectCustomerListVirtual /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')CustomerListArray(Objkey = '')PatchAsync(ConnectCustomerListVirtualUpdate connectCustomerListVirtual_UpdateBodyParam, string if_Match, Prefer17 ? prefer, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); if (connectCustomerListVirtual_UpdateBodyParam == null) throw new System.ArgumentNullException("connectCustomerListVirtual_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/CustomerListArray(Objkey='{Objkey}')"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(connectCustomerListVirtual_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from AssortmentStructureRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')AssortmentStructureRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous659 > orderby, System.Collections.Generic.IEnumerable < Anonymous660 > select, string objkey) { return ConectCustAssortmentVirtualSet(Objkey = '')AssortmentStructureRefAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None); } /// /// Get entities from AssortmentStructureRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual Response98 ConectCustAssortmentVirtualSet(Objkey= '')AssortmentStructureRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous659 > orderby, System.Collections.Generic.IEnumerable < Anonymous660 > select, string objkey) { return System.Threading.Tasks.Task.Run(async () => await ConectCustAssortmentVirtualSet(Objkey = '')AssortmentStructureRefAsync(top, skip, count, filter, orderby, select, objkey, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from AssortmentStructureRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Objkey /// response body for entity array AssortmentStructure /// A server side error occurred. public virtual async System.Threading.Tasks.Task ConectCustAssortmentVirtualSet(Objkey= '')AssortmentStructureRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous659 > orderby, System.Collections.Generic.IEnumerable < Anonymous660 > select, string objkey, System.Threading.CancellationToken cancellationToken) { if (objkey == null) throw new System.ArgumentNullException("objkey"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ConectCustAssortmentVirtualSet(Objkey='{Objkey}')/AssortmentStructureRef?"); urlBuilder_.Replace("{Objkey}", System.Uri.EscapeDataString(ConvertToString(objkey, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerPrjrepParamsSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return CustomerPrjrepParamsSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerPrjrepParamsSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual Response52 CustomerPrjrepParamsSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerPrjrepParamsSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerPrjrepParamsSet /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSetPostAsync(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return CustomerPrjrepParamsSetPostAsync(customerPrjrepParams_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerPrjrepParamsSet /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSetPost(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSetPostAsync(customerPrjrepParams_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerPrjrepParamsSet /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSetPostAsync(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (customerPrjrepParams_InsertBodyParam == null) throw new System.ArgumentNullException("customerPrjrepParams_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPrjrepParams_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerPrjrepParamsSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous665 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerPrjrepParamsSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSet(Company= '', Identity= '')Get(System.Collections.Generic.IEnumerable < Anonymous665 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerPrjrepParamsSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous665 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerPrjrepParamsSet /// /// E-Tag /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')DeleteAsync(string if_Match, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')DeleteAsync(if_Match, company, identity, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerPrjrepParamsSet /// /// E-Tag /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual void CustomerPrjrepParamsSet(Company= '', Identity= '')Delete(string if_Match, string company, string identity) { System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')DeleteAsync(if_Match, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerPrjrepParamsSet /// /// E-Tag /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')DeleteAsync(string if_Match, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerPrjrepParamsSet /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')PatchAsync(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer18 ? prefer, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')PatchAsync(customerPrjrepParams_UpdateBodyParam, if_Match, prefer, company, identity, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerPrjrepParamsSet /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSet(Company= '', Identity= '')Patch(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer18 ? prefer, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')PatchAsync(customerPrjrepParams_UpdateBodyParam, if_Match, prefer, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerPrjrepParamsSet /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')PatchAsync(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer18 ? prefer, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (customerPrjrepParams_UpdateBodyParam == null) throw new System.ArgumentNullException("customerPrjrepParams_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPrjrepParams_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')IfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous666 > select, string company, string identity, string copyValues, string if_Match) { return CustomerPrjrepParamsSet(Company = '', Identity = '')IfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(select, company, identity, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSet(Company= '', Identity= '')IfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)(System.Collections.Generic.IEnumerable < Anonymous666 > select, string company, string identity, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')IfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(select, company, identity, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')IfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous666 > select, string company, string identity, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/IfsApp.CustomerHandling.CustomerPrjrepParams_DefaultCopy(CopyValues=@CopyValues)?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous667 > select, string copyValues, string if_Match) { return CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues= @CopyValues)(System.Collections.Generic.IEnumerable select, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerPrjrepParamsCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous667 > select, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet/IfsApp.CustomerHandling.CustomerPrjrepParams_DefaultCopy(CopyValues=@CopyValues)?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefault()Async(System.Collections.Generic.IEnumerable < Anonymous668 > select, string if_Match) { return CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSetIfsApp_CustomerHandling_CustomerPrjrepParamsDefault()Async(System.Collections.Generic.IEnumerable < Anonymous668 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet/IfsApp.CustomerHandling.CustomerPrjrepParams_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CompanyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CompanyFinance /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CompanyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous669 > orderby, System.Collections.Generic.IEnumerable < Anonymous670 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')CompanyRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from CompanyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CompanyFinance /// A server side error occurred. public virtual Response122 CustomerPrjrepParamsSet(Company= '', Identity= '')CompanyRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous669 > orderby, System.Collections.Generic.IEnumerable < Anonymous670 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')CompanyRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CompanyRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CompanyFinance /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CompanyRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous669 > orderby, System.Collections.Generic.IEnumerable < Anonymous670 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/CompanyRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ProjectSalesPriceIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSalesPriceIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous671 > orderby, System.Collections.Generic.IEnumerable < Anonymous672 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')ProjectSalesPriceIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from ProjectSalesPriceIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual Response60 CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSalesPriceIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous671 > orderby, System.Collections.Generic.IEnumerable < Anonymous672 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')ProjectSalesPriceIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ProjectSalesPriceIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSalesPrice /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSalesPriceIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous671 > orderby, System.Collections.Generic.IEnumerable < Anonymous672 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/ProjectSalesPriceIdRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from ProjectSupplierMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSupplierMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous673 > orderby, System.Collections.Generic.IEnumerable < Anonymous674 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')ProjectSupplierMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from ProjectSupplierMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual Response65 CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSupplierMarginIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous673 > orderby, System.Collections.Generic.IEnumerable < Anonymous674 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')ProjectSupplierMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from ProjectSupplierMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array ProjectSupplierMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')ProjectSupplierMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous673 > orderby, System.Collections.Generic.IEnumerable < Anonymous674 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/ProjectSupplierMarginIdRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from TravelExpMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')TravelExpMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous675 > orderby, System.Collections.Generic.IEnumerable < Anonymous676 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')TravelExpMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from TravelExpMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual Response70 CustomerPrjrepParamsSet(Company= '', Identity= '')TravelExpMarginIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous675 > orderby, System.Collections.Generic.IEnumerable < Anonymous676 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')TravelExpMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from TravelExpMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardTravExpMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')TravelExpMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous675 > orderby, System.Collections.Generic.IEnumerable < Anonymous676 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/TravelExpMarginIdRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from MatWithMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')MatWithMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous677 > orderby, System.Collections.Generic.IEnumerable < Anonymous678 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')MatWithMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from MatWithMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual Response93 CustomerPrjrepParamsSet(Company= '', Identity= '')MatWithMarginIdRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous677 > orderby, System.Collections.Generic.IEnumerable < Anonymous678 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')MatWithMarginIdRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from MatWithMarginIdRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array StandardMatWithMargin /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')MatWithMarginIdRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous677 > orderby, System.Collections.Generic.IEnumerable < Anonymous678 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/MatWithMarginIdRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyCode /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous679 > orderby, System.Collections.Generic.IEnumerable < Anonymous680 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')CurrencyCodeRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyCode /// A server side error occurred. public virtual Response62 CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyCodeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous679 > orderby, System.Collections.Generic.IEnumerable < Anonymous680 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')CurrencyCodeRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CurrencyCodeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyCodeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous679 > orderby, System.Collections.Generic.IEnumerable < Anonymous680 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/CurrencyCodeRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CurrencyTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyType /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous681 > orderby, System.Collections.Generic.IEnumerable < Anonymous682 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')CurrencyTypeRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from CurrencyTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyType /// A server side error occurred. public virtual Response55 CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyTypeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous681 > orderby, System.Collections.Generic.IEnumerable < Anonymous682 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')CurrencyTypeRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CurrencyTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array CurrencyType /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')CurrencyTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous681 > orderby, System.Collections.Generic.IEnumerable < Anonymous682 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/CurrencyTypeRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from PayingCustomerRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')PayingCustomerRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous683 > orderby, System.Collections.Generic.IEnumerable < Anonymous684 > select, string company, string identity) { return CustomerPrjrepParamsSet(Company = '', Identity = '')PayingCustomerRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entities from PayingCustomerRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual Response40 CustomerPrjrepParamsSet(Company= '', Identity= '')PayingCustomerRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous683 > orderby, System.Collections.Generic.IEnumerable < Anonymous684 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerPrjrepParamsSet(Company = '', Identity = '')PayingCustomerRefAsync(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from PayingCustomerRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity array PartyTypeCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerPrjrepParamsSet(Company= '', Identity= '')PayingCustomerRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous683 > orderby, System.Collections.Generic.IEnumerable < Anonymous684 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerPrjrepParamsSet(Company='{Company}',Identity='{Identity}')/PayingCustomerRef?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return CustomerInfoSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual Response53 CustomerInfoSetGet(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSetGetAsync(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerInfoSet /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for entity array CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSetGetAsync(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerInfoSet /// /// Created CustomerInfo object /// Prefer: return=minimal /// response body for entity type CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSetPostAsync(CustomerInfoInsert customerInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return CustomerInfoSetPostAsync(customerInfo_InsertBodyParam, prefer, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerInfoSet /// /// Created CustomerInfo object /// Prefer: return=minimal /// response body for entity type CustomerInfo /// A server side error occurred. public virtual CustomerInfo CustomerInfoSetPost(CustomerInfoInsert customerInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSetPostAsync(customerInfo_InsertBodyParam, prefer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerInfoSet /// /// Created CustomerInfo object /// Prefer: return=minimal /// response body for entity type CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSetPostAsync(CustomerInfoInsert customerInfo_InsertBodyParam, System.Collections.Generic.IEnumerable prefer, System.Threading.CancellationToken cancellationToken) { if (customerInfo_InsertBodyParam == null) throw new System.ArgumentNullException("customerInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous689 > select, string customerId) { return CustomerInfoSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual CustomerInfo CustomerInfoSet(CustomerId= '')Get(System.Collections.Generic.IEnumerable < Anonymous689 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerInfoSet by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous689 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')DeleteAsync(string if_Match, string customerId) { return CustomerInfoSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')Delete(string if_Match, string customerId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerInfoSet /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')DeleteAsync(string if_Match, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerInfoSet /// /// Updated CustomerInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')PatchAsync(CustomerInfoUpdate customerInfo_UpdateBodyParam, string if_Match, Prefer19 ? prefer, string customerId) { return CustomerInfoSet(CustomerId = '')PatchAsync(customerInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerInfoSet /// /// Updated CustomerInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual CustomerInfo CustomerInfoSet(CustomerId= '')Patch(CustomerInfoUpdate customerInfo_UpdateBodyParam, string if_Match, Prefer19 ? prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')PatchAsync(customerInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerInfoSet /// /// Updated CustomerInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')PatchAsync(CustomerInfoUpdate customerInfo_UpdateBodyParam, string if_Match, Prefer19 ? prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("customerInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')IfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous690 > select, string customerId, string copyValues, string if_Match) { return CustomerInfoSet(CustomerId = '')IfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerInfo CustomerInfoSet(CustomerId= '')IfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)(System.Collections.Generic.IEnumerable < Anonymous690 > select, string customerId, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')IfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(select, customerId, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')IfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous690 > select, string customerId, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/IfsApp.CustomerHandling.CustomerInfo_DefaultCopy(CopyValues=@CopyValues)?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous691 > select, string copyValues, string if_Match) { return CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual CustomerInfo CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues= @CopyValues)(System.Collections.Generic.IEnumerable select, string copyValues, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues = @CopyValues)Async(select, copyValues, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultCopy /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// CustomerInfoCopyValues is expected in application/json format /// E-Tag /// response body for function DefaultCopy /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefaultCopy(CopyValues= @CopyValues)Async(System.Collections.Generic.IEnumerable < Anonymous691 > select, string copyValues, string if_Match, System.Threading.CancellationToken cancellationToken) { if (copyValues == null) throw new System.ArgumentNullException("copyValues"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet/IfsApp.CustomerHandling.CustomerInfo_DefaultCopy(CopyValues=@CopyValues)?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Append(System.Uri.EscapeDataString("@CopyValues") + "=").Append(System.Uri.EscapeDataString(ConvertToString(copyValues, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefault()Async(System.Collections.Generic.IEnumerable < Anonymous692 > select, string if_Match) { return CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefault()Async(select, if_Match, System.Threading.CancellationToken.None); } /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerInfo /// A server side error occurred. public virtual CustomerInfo CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefault()(System.Collections.Generic.IEnumerable select, string if_Match) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefault()Async(select, if_Match, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function Default /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// E-Tag /// response body for entity type CustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSetIfsApp_CustomerHandling_CustomerInfoDefault()Async(System.Collections.Generic.IEnumerable < Anonymous692 > select, string if_Match, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet/IfsApp.CustomerHandling.CustomerInfo_Default()?"); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from OurIds /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIdsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous693 > orderby, System.Collections.Generic.IEnumerable < Anonymous694 > select, System.Collections.Generic.IEnumerable < Anonymous695 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')OurIdsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from OurIds /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual Response143 CustomerInfoSet(CustomerId= '')OurIdsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous693 > orderby, System.Collections.Generic.IEnumerable < Anonymous694 > select, System.Collections.Generic.IEnumerable < Anonymous695 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')OurIdsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from OurIds /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIdsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous693 > orderby, System.Collections.Generic.IEnumerable < Anonymous694 > select, System.Collections.Generic.IEnumerable < Anonymous695 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/OurIds?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to OurIds /// /// Created CustomerInfoOurId object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIdsPostAsync(CustomerInfoOurIdInsert customerInfoOurId_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous696 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')OurIdsPostAsync(customerInfoOurId_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to OurIds /// /// Created CustomerInfoOurId object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual CustomerInfoOurId CustomerInfoSet(CustomerId= '')OurIdsPost(CustomerInfoOurIdInsert customerInfoOurId_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous696 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')OurIdsPostAsync(customerInfoOurId_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to OurIds /// /// Created CustomerInfoOurId object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIdsPostAsync(CustomerInfoOurIdInsert customerInfoOurId_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous696 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerInfoOurId_InsertBodyParam == null) throw new System.ArgumentNullException("customerInfoOurId_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/OurIds"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoOurId_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from OurIds by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous697 > select, string customerId, string company) { return CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')GetAsync(select, customerId, company, System.Threading.CancellationToken.None); } /// /// Get entity from OurIds by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual CustomerInfoOurId CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')Get(System.Collections.Generic.IEnumerable < Anonymous697 > select, string customerId, string company) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')GetAsync(select, customerId, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from OurIds by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous697 > select, string customerId, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/OurIds(CustomerId='{CustomerId}',Company='{Company}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from OurIds /// /// E-Tag /// key: CustomerId /// key: Company /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')DeleteAsync(string if_Match, string customerId, string company) { return CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')DeleteAsync(if_Match, customerId, company, System.Threading.CancellationToken.None); } /// /// Delete entity from OurIds /// /// E-Tag /// key: CustomerId /// key: Company /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')Delete(string if_Match, string customerId, string company) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')DeleteAsync(if_Match, customerId, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from OurIds /// /// E-Tag /// key: CustomerId /// key: Company /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')DeleteAsync(string if_Match, string customerId, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/OurIds(CustomerId='{CustomerId}',Company='{Company}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in OurIds /// /// Updated CustomerInfoOurId object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')PatchAsync(CustomerInfoOurIdUpdate customerInfoOurId_UpdateBodyParam, string if_Match, Prefer20 ? prefer, string customerId, string company) { return CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')PatchAsync(customerInfoOurId_UpdateBodyParam, if_Match, prefer, customerId, company, System.Threading.CancellationToken.None); } /// /// Update entity in OurIds /// /// Updated CustomerInfoOurId object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual CustomerInfoOurId CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')Patch(CustomerInfoOurIdUpdate customerInfoOurId_UpdateBodyParam, string if_Match, Prefer20 ? prefer, string customerId, string company) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')OurIds(CustomerId = '', Company = '')PatchAsync(customerInfoOurId_UpdateBodyParam, if_Match, prefer, customerId, company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in OurIds /// /// Updated CustomerInfoOurId object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// response body for entity type CustomerInfoOurId /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')OurIds(CustomerId = '', Company = '')PatchAsync(CustomerInfoOurIdUpdate customerInfoOurId_UpdateBodyParam, string if_Match, Prefer20 ? prefer, string customerId, string company, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (customerInfoOurId_UpdateBodyParam == null) throw new System.ArgumentNullException("customerInfoOurId_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/OurIds(CustomerId='{CustomerId}',Company='{Company}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoOurId_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerInfoAddresses /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddressesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous698 > orderby, System.Collections.Generic.IEnumerable < Anonymous699 > select, System.Collections.Generic.IEnumerable < Anonymous700 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInfoAddressesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerInfoAddresses /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual Response140 CustomerInfoSet(CustomerId= '')CustomerInfoAddressesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous698 > orderby, System.Collections.Generic.IEnumerable < Anonymous699 > select, System.Collections.Generic.IEnumerable < Anonymous700 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoAddressesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerInfoAddresses /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddressesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous698 > orderby, System.Collections.Generic.IEnumerable < Anonymous699 > select, System.Collections.Generic.IEnumerable < Anonymous700 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoAddresses?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerInfoAddresses /// /// Created CustomerInfoAddress object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddressesPostAsync(CustomerInfoAddressInsert customerInfoAddress_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous701 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInfoAddressesPostAsync(customerInfoAddress_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerInfoAddresses /// /// Created CustomerInfoAddress object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual CustomerInfoAddress CustomerInfoSet(CustomerId= '')CustomerInfoAddressesPost(CustomerInfoAddressInsert customerInfoAddress_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous701 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoAddressesPostAsync(customerInfoAddress_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerInfoAddresses /// /// Created CustomerInfoAddress object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddressesPostAsync(CustomerInfoAddressInsert customerInfoAddress_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous701 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerInfoAddress_InsertBodyParam == null) throw new System.ArgumentNullException("customerInfoAddress_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoAddresses"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoAddress_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerInfoAddresses by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous702 > select, string customerId, string addressId) { return CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')GetAsync(select, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerInfoAddresses by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual CustomerInfoAddress CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')Get(System.Collections.Generic.IEnumerable < Anonymous702 > select, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')GetAsync(select, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerInfoAddresses by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous702 > select, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoAddresses(CustomerId='{CustomerId}',AddressId='{AddressId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerInfoAddresses /// /// E-Tag /// key: CustomerId /// key: AddressId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')DeleteAsync(string if_Match, string customerId, string addressId) { return CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')DeleteAsync(if_Match, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerInfoAddresses /// /// E-Tag /// key: CustomerId /// key: AddressId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')Delete(string if_Match, string customerId, string addressId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')DeleteAsync(if_Match, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerInfoAddresses /// /// E-Tag /// key: CustomerId /// key: AddressId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')DeleteAsync(string if_Match, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoAddresses(CustomerId='{CustomerId}',AddressId='{AddressId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerInfoAddresses /// /// Updated CustomerInfoAddress object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')PatchAsync(CustomerInfoAddressUpdate customerInfoAddress_UpdateBodyParam, string if_Match, Prefer21 ? prefer, string customerId, string addressId) { return CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')PatchAsync(customerInfoAddress_UpdateBodyParam, if_Match, prefer, customerId, addressId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerInfoAddresses /// /// Updated CustomerInfoAddress object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual CustomerInfoAddress CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')Patch(CustomerInfoAddressUpdate customerInfoAddress_UpdateBodyParam, string if_Match, Prefer21 ? prefer, string customerId, string addressId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoAddresses(CustomerId = '', AddressId = '')PatchAsync(customerInfoAddress_UpdateBodyParam, if_Match, prefer, customerId, addressId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerInfoAddresses /// /// Updated CustomerInfoAddress object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: AddressId /// response body for entity type CustomerInfoAddress /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoAddresses(CustomerId = '', AddressId = '')PatchAsync(CustomerInfoAddressUpdate customerInfoAddress_UpdateBodyParam, string if_Match, Prefer21 ? prefer, string customerId, string addressId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (addressId == null) throw new System.ArgumentNullException("addressId"); if (customerInfoAddress_UpdateBodyParam == null) throw new System.ArgumentNullException("customerInfoAddress_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoAddresses(CustomerId='{CustomerId}',AddressId='{AddressId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{AddressId}", System.Uri.EscapeDataString(ConvertToString(addressId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoAddress_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerInfoContacts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContactsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous703 > orderby, System.Collections.Generic.IEnumerable < Anonymous704 > select, System.Collections.Generic.IEnumerable < Anonymous705 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInfoContactsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerInfoContacts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual Response144 CustomerInfoSet(CustomerId= '')CustomerInfoContactsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous703 > orderby, System.Collections.Generic.IEnumerable < Anonymous704 > select, System.Collections.Generic.IEnumerable < Anonymous705 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoContactsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerInfoContacts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContactsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous703 > orderby, System.Collections.Generic.IEnumerable < Anonymous704 > select, System.Collections.Generic.IEnumerable < Anonymous705 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoContacts?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerInfoContacts /// /// Created CustomerInfoContact object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContactsPostAsync(CustomerInfoContactInsert customerInfoContact_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous706 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInfoContactsPostAsync(customerInfoContact_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerInfoContacts /// /// Created CustomerInfoContact object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual CustomerInfoContact CustomerInfoSet(CustomerId= '')CustomerInfoContactsPost(CustomerInfoContactInsert customerInfoContact_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous706 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoContactsPostAsync(customerInfoContact_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerInfoContacts /// /// Created CustomerInfoContact object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContactsPostAsync(CustomerInfoContactInsert customerInfoContact_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous706 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerInfoContact_InsertBodyParam == null) throw new System.ArgumentNullException("customerInfoContact_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoContacts"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoContact_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerInfoContacts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous707 > select, string customerId, string personId, string guid) { return CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')GetAsync(select, customerId, personId, guid, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerInfoContacts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual CustomerInfoContact CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')Get(System.Collections.Generic.IEnumerable < Anonymous707 > select, string customerId, string personId, string guid) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')GetAsync(select, customerId, personId, guid, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerInfoContacts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous707 > select, string customerId, string personId, string guid, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (personId == null) throw new System.ArgumentNullException("personId"); if (guid == null) throw new System.ArgumentNullException("guid"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoContacts(CustomerId='{CustomerId}',PersonId='{PersonId}',Guid='{Guid}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Guid}", System.Uri.EscapeDataString(ConvertToString(guid, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerInfoContacts /// /// E-Tag /// key: CustomerId /// key: PersonId /// key: Guid /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')DeleteAsync(string if_Match, string customerId, string personId, string guid) { return CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')DeleteAsync(if_Match, customerId, personId, guid, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerInfoContacts /// /// E-Tag /// key: CustomerId /// key: PersonId /// key: Guid /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')Delete(string if_Match, string customerId, string personId, string guid) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')DeleteAsync(if_Match, customerId, personId, guid, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerInfoContacts /// /// E-Tag /// key: CustomerId /// key: PersonId /// key: Guid /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')DeleteAsync(string if_Match, string customerId, string personId, string guid, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (personId == null) throw new System.ArgumentNullException("personId"); if (guid == null) throw new System.ArgumentNullException("guid"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoContacts(CustomerId='{CustomerId}',PersonId='{PersonId}',Guid='{Guid}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Guid}", System.Uri.EscapeDataString(ConvertToString(guid, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerInfoContacts /// /// Updated CustomerInfoContact object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')PatchAsync(CustomerInfoContactUpdate customerInfoContact_UpdateBodyParam, string if_Match, Prefer22 ? prefer, string customerId, string personId, string guid) { return CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')PatchAsync(customerInfoContact_UpdateBodyParam, if_Match, prefer, customerId, personId, guid, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerInfoContacts /// /// Updated CustomerInfoContact object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual CustomerInfoContact CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')Patch(CustomerInfoContactUpdate customerInfoContact_UpdateBodyParam, string if_Match, Prefer22 ? prefer, string customerId, string personId, string guid) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')PatchAsync(customerInfoContact_UpdateBodyParam, if_Match, prefer, customerId, personId, guid, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerInfoContacts /// /// Updated CustomerInfoContact object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PersonId /// key: Guid /// response body for entity type CustomerInfoContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInfoContacts(CustomerId = '', PersonId = '', Guid = '')PatchAsync(CustomerInfoContactUpdate customerInfoContact_UpdateBodyParam, string if_Match, Prefer22 ? prefer, string customerId, string personId, string guid, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (personId == null) throw new System.ArgumentNullException("personId"); if (guid == null) throw new System.ArgumentNullException("guid"); if (customerInfoContact_UpdateBodyParam == null) throw new System.ArgumentNullException("customerInfoContact_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInfoContacts(CustomerId='{CustomerId}',PersonId='{PersonId}',Guid='{Guid}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Guid}", System.Uri.EscapeDataString(ConvertToString(guid, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoContact_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CommunicationMethods /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethodsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous708 > orderby, System.Collections.Generic.IEnumerable < Anonymous709 > select, System.Collections.Generic.IEnumerable < Anonymous710 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CommunicationMethodsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CommunicationMethods /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CommMethod /// A server side error occurred. public virtual Response56 CustomerInfoSet(CustomerId= '')CommunicationMethodsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous708 > orderby, System.Collections.Generic.IEnumerable < Anonymous709 > select, System.Collections.Generic.IEnumerable < Anonymous710 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CommunicationMethodsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CommunicationMethods /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethodsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous708 > orderby, System.Collections.Generic.IEnumerable < Anonymous709 > select, System.Collections.Generic.IEnumerable < Anonymous710 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CommunicationMethods?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CommunicationMethods /// /// Created CommMethod object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethodsPostAsync(CommMethodInsert commMethod_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous711 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CommunicationMethodsPostAsync(commMethod_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CommunicationMethods /// /// Created CommMethod object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CommMethod /// A server side error occurred. public virtual CommMethod CustomerInfoSet(CustomerId= '')CommunicationMethodsPost(CommMethodInsert commMethod_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous711 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CommunicationMethodsPostAsync(commMethod_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CommunicationMethods /// /// Created CommMethod object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethodsPostAsync(CommMethodInsert commMethod_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous711 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (commMethod_InsertBodyParam == null) throw new System.ArgumentNullException("commMethod_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CommunicationMethods"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(commMethod_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CommunicationMethods by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous712 > select, string partyType, string identity, double commId) { return CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')GetAsync(select, partyType, identity, commId, System.Threading.CancellationToken.None); } /// /// Get entity from CommunicationMethods by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual CommMethod CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')Get(System.Collections.Generic.IEnumerable < Anonymous712 > select, string partyType, string identity, double commId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')GetAsync(select, partyType, identity, commId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CommunicationMethods by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous712 > select, string partyType, string identity, double commId, System.Threading.CancellationToken cancellationToken) { if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identity == null) throw new System.ArgumentNullException("identity"); if (commId == null) throw new System.ArgumentNullException("commId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CommunicationMethods(PartyType='{PartyType}',Identity='{Identity}',CommId='{CommId}')?"); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommId}", System.Uri.EscapeDataString(ConvertToString(commId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CommunicationMethods /// /// E-Tag /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')DeleteAsync(string if_Match, string customerId, string partyType, string identity, double commId) { return CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')DeleteAsync(if_Match, customerId, partyType, identity, commId, System.Threading.CancellationToken.None); } /// /// Delete entity from CommunicationMethods /// /// E-Tag /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')Delete(string if_Match, string customerId, string partyType, string identity, double commId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')DeleteAsync(if_Match, customerId, partyType, identity, commId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CommunicationMethods /// /// E-Tag /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')DeleteAsync(string if_Match, string customerId, string partyType, string identity, double commId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identity == null) throw new System.ArgumentNullException("identity"); if (commId == null) throw new System.ArgumentNullException("commId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CommunicationMethods(PartyType='{PartyType}',Identity='{Identity}',CommId='{CommId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommId}", System.Uri.EscapeDataString(ConvertToString(commId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CommunicationMethods /// /// Updated CommMethod object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')PatchAsync(CommMethodUpdate commMethod_UpdateBodyParam, string if_Match, Prefer23 ? prefer, string customerId, string partyType, string identity, double commId) { return CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')PatchAsync(commMethod_UpdateBodyParam, if_Match, prefer, customerId, partyType, identity, commId, System.Threading.CancellationToken.None); } /// /// Update entity in CommunicationMethods /// /// Updated CommMethod object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual CommMethod CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')Patch(CommMethodUpdate commMethod_UpdateBodyParam, string if_Match, Prefer23 ? prefer, string customerId, string partyType, string identity, double commId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')PatchAsync(commMethod_UpdateBodyParam, if_Match, prefer, customerId, partyType, identity, commId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CommunicationMethods /// /// Updated CommMethod object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: PartyType /// key: Identity /// key: CommId /// response body for entity type CommMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CommunicationMethods(PartyType = '', Identity = '', CommId = '')PatchAsync(CommMethodUpdate commMethod_UpdateBodyParam, string if_Match, Prefer23 ? prefer, string customerId, string partyType, string identity, double commId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identity == null) throw new System.ArgumentNullException("identity"); if (commId == null) throw new System.ArgumentNullException("commId"); if (commMethod_UpdateBodyParam == null) throw new System.ArgumentNullException("commMethod_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CommunicationMethods(PartyType='{PartyType}',Identity='{Identity}',CommId='{CommId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CommId}", System.Uri.EscapeDataString(ConvertToString(commId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(commMethod_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from MessageSetups /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetupsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous713 > orderby, System.Collections.Generic.IEnumerable < Anonymous714 > select, System.Collections.Generic.IEnumerable < Anonymous715 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')MessageSetupsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from MessageSetups /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual Response145 CustomerInfoSet(CustomerId= '')MessageSetupsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous713 > orderby, System.Collections.Generic.IEnumerable < Anonymous714 > select, System.Collections.Generic.IEnumerable < Anonymous715 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')MessageSetupsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from MessageSetups /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetupsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous713 > orderby, System.Collections.Generic.IEnumerable < Anonymous714 > select, System.Collections.Generic.IEnumerable < Anonymous715 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/MessageSetups?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to MessageSetups /// /// Created CustomerInfoMsgSetup object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetupsPostAsync(CustomerInfoMsgSetupInsert customerInfoMsgSetup_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous716 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')MessageSetupsPostAsync(customerInfoMsgSetup_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to MessageSetups /// /// Created CustomerInfoMsgSetup object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual CustomerInfoMsgSetup CustomerInfoSet(CustomerId= '')MessageSetupsPost(CustomerInfoMsgSetupInsert customerInfoMsgSetup_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous716 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')MessageSetupsPostAsync(customerInfoMsgSetup_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to MessageSetups /// /// Created CustomerInfoMsgSetup object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetupsPostAsync(CustomerInfoMsgSetupInsert customerInfoMsgSetup_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous716 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerInfoMsgSetup_InsertBodyParam == null) throw new System.ArgumentNullException("customerInfoMsgSetup_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/MessageSetups"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoMsgSetup_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from MessageSetups by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous717 > select, string customerId, string mediaCode, string messageClass) { return CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')GetAsync(select, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None); } /// /// Get entity from MessageSetups by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual CustomerInfoMsgSetup CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')Get(System.Collections.Generic.IEnumerable < Anonymous717 > select, string customerId, string mediaCode, string messageClass) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')GetAsync(select, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from MessageSetups by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous717 > select, string customerId, string mediaCode, string messageClass, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); if (messageClass == null) throw new System.ArgumentNullException("messageClass"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/MessageSetups(CustomerId='{CustomerId}',MediaCode='{MediaCode}',MessageClass='{MessageClass}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageClass}", System.Uri.EscapeDataString(ConvertToString(messageClass, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from MessageSetups /// /// E-Tag /// key: CustomerId /// key: MediaCode /// key: MessageClass /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')DeleteAsync(string if_Match, string customerId, string mediaCode, string messageClass) { return CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')DeleteAsync(if_Match, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None); } /// /// Delete entity from MessageSetups /// /// E-Tag /// key: CustomerId /// key: MediaCode /// key: MessageClass /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')Delete(string if_Match, string customerId, string mediaCode, string messageClass) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')DeleteAsync(if_Match, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from MessageSetups /// /// E-Tag /// key: CustomerId /// key: MediaCode /// key: MessageClass /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')DeleteAsync(string if_Match, string customerId, string mediaCode, string messageClass, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); if (messageClass == null) throw new System.ArgumentNullException("messageClass"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/MessageSetups(CustomerId='{CustomerId}',MediaCode='{MediaCode}',MessageClass='{MessageClass}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageClass}", System.Uri.EscapeDataString(ConvertToString(messageClass, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in MessageSetups /// /// Updated CustomerInfoMsgSetup object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')PatchAsync(CustomerInfoMsgSetupUpdate customerInfoMsgSetup_UpdateBodyParam, string if_Match, Prefer24 ? prefer, string customerId, string mediaCode, string messageClass) { return CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')PatchAsync(customerInfoMsgSetup_UpdateBodyParam, if_Match, prefer, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None); } /// /// Update entity in MessageSetups /// /// Updated CustomerInfoMsgSetup object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual CustomerInfoMsgSetup CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')Patch(CustomerInfoMsgSetupUpdate customerInfoMsgSetup_UpdateBodyParam, string if_Match, Prefer24 ? prefer, string customerId, string mediaCode, string messageClass) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')PatchAsync(customerInfoMsgSetup_UpdateBodyParam, if_Match, prefer, customerId, mediaCode, messageClass, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in MessageSetups /// /// Updated CustomerInfoMsgSetup object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: MediaCode /// key: MessageClass /// response body for entity type CustomerInfoMsgSetup /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')MessageSetups(CustomerId = '', MediaCode = '', MessageClass = '')PatchAsync(CustomerInfoMsgSetupUpdate customerInfoMsgSetup_UpdateBodyParam, string if_Match, Prefer24 ? prefer, string customerId, string mediaCode, string messageClass, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (mediaCode == null) throw new System.ArgumentNullException("mediaCode"); if (messageClass == null) throw new System.ArgumentNullException("messageClass"); if (customerInfoMsgSetup_UpdateBodyParam == null) throw new System.ArgumentNullException("customerInfoMsgSetup_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/MessageSetups(CustomerId='{CustomerId}',MediaCode='{MediaCode}',MessageClass='{MessageClass}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MediaCode}", System.Uri.EscapeDataString(ConvertToString(mediaCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{MessageClass}", System.Uri.EscapeDataString(ConvertToString(messageClass, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerInfoMsgSetup_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerInvoiceCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous718 > orderby, System.Collections.Generic.IEnumerable < Anonymous719 > select, System.Collections.Generic.IEnumerable < Anonymous720 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInvoiceCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerInvoiceCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual Response114 CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous718 > orderby, System.Collections.Generic.IEnumerable < Anonymous719 > select, System.Collections.Generic.IEnumerable < Anonymous720 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInvoiceCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerInvoiceCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous718 > orderby, System.Collections.Generic.IEnumerable < Anonymous719 > select, System.Collections.Generic.IEnumerable < Anonymous720 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInvoiceCompanies?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerInvoiceCompanies /// /// Created IdentityInvoiceInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesPostAsync(IdentityInvoiceInfoInsert identityInvoiceInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous721 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerInvoiceCompaniesPostAsync(identityInvoiceInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerInvoiceCompanies /// /// Created IdentityInvoiceInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual IdentityInvoiceInfo CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesPost(IdentityInvoiceInfoInsert identityInvoiceInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous721 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInvoiceCompaniesPostAsync(identityInvoiceInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerInvoiceCompanies /// /// Created IdentityInvoiceInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompaniesPostAsync(IdentityInvoiceInfoInsert identityInvoiceInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous721 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (identityInvoiceInfo_InsertBodyParam == null) throw new System.ArgumentNullException("identityInvoiceInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInvoiceCompanies"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(identityInvoiceInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerInvoiceCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous722 > select, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')GetAsync(select, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerInvoiceCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual IdentityInvoiceInfo CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')Get(System.Collections.Generic.IEnumerable < Anonymous722 > select, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')GetAsync(select, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerInvoiceCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous722 > select, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInvoiceCompanies(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerInvoiceCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')DeleteAsync(string if_Match, string customerId, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')DeleteAsync(if_Match, customerId, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerInvoiceCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')Delete(string if_Match, string customerId, string company, string identity, string partyType) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')DeleteAsync(if_Match, customerId, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerInvoiceCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')DeleteAsync(string if_Match, string customerId, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInvoiceCompanies(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerInvoiceCompanies /// /// Updated IdentityInvoiceInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')PatchAsync(IdentityInvoiceInfoUpdate identityInvoiceInfo_UpdateBodyParam, string if_Match, Prefer25 ? prefer, string customerId, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')PatchAsync(identityInvoiceInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerInvoiceCompanies /// /// Updated IdentityInvoiceInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual IdentityInvoiceInfo CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')Patch(IdentityInvoiceInfoUpdate identityInvoiceInfo_UpdateBodyParam, string if_Match, Prefer25 ? prefer, string customerId, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')PatchAsync(identityInvoiceInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerInvoiceCompanies /// /// Updated IdentityInvoiceInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityInvoiceInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerInvoiceCompanies(Company = '', Identity = '', PartyType = '')PatchAsync(IdentityInvoiceInfoUpdate identityInvoiceInfo_UpdateBodyParam, string if_Match, Prefer25 ? prefer, string customerId, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identityInvoiceInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("identityInvoiceInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerInvoiceCompanies(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(identityInvoiceInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerPayments /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPaymentsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous723 > orderby, System.Collections.Generic.IEnumerable < Anonymous724 > select, System.Collections.Generic.IEnumerable < Anonymous725 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerPaymentsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerPayments /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual Response121 CustomerInfoSet(CustomerId= '')CustomerPaymentsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous723 > orderby, System.Collections.Generic.IEnumerable < Anonymous724 > select, System.Collections.Generic.IEnumerable < Anonymous725 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPaymentsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerPayments /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPaymentsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous723 > orderby, System.Collections.Generic.IEnumerable < Anonymous724 > select, System.Collections.Generic.IEnumerable < Anonymous725 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPayments?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerPayments /// /// Created IdentityPayInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPaymentsPostAsync(IdentityPayInfoInsert identityPayInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous726 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerPaymentsPostAsync(identityPayInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerPayments /// /// Created IdentityPayInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual IdentityPayInfo CustomerInfoSet(CustomerId= '')CustomerPaymentsPost(IdentityPayInfoInsert identityPayInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous726 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPaymentsPostAsync(identityPayInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerPayments /// /// Created IdentityPayInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPaymentsPostAsync(IdentityPayInfoInsert identityPayInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous726 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (identityPayInfo_InsertBodyParam == null) throw new System.ArgumentNullException("identityPayInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPayments"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(identityPayInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerPayments by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous727 > select, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')GetAsync(select, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerPayments by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual IdentityPayInfo CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')Get(System.Collections.Generic.IEnumerable < Anonymous727 > select, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')GetAsync(select, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerPayments by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous727 > select, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPayments(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerPayments /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')DeleteAsync(string if_Match, string customerId, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')DeleteAsync(if_Match, customerId, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerPayments /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')Delete(string if_Match, string customerId, string company, string identity, string partyType) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')DeleteAsync(if_Match, customerId, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerPayments /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')DeleteAsync(string if_Match, string customerId, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPayments(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerPayments /// /// Updated IdentityPayInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')PatchAsync(IdentityPayInfoUpdate identityPayInfo_UpdateBodyParam, string if_Match, Prefer26 ? prefer, string customerId, string company, string identity, string partyType) { return CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')PatchAsync(identityPayInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, partyType, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerPayments /// /// Updated IdentityPayInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual IdentityPayInfo CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')Patch(IdentityPayInfoUpdate identityPayInfo_UpdateBodyParam, string if_Match, Prefer26 ? prefer, string customerId, string company, string identity, string partyType) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPayments(Company = '', Identity = '', PartyType = '')PatchAsync(identityPayInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, partyType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerPayments /// /// Updated IdentityPayInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// key: PartyType /// response body for entity type IdentityPayInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPayments(Company = '', Identity = '', PartyType = '')PatchAsync(IdentityPayInfoUpdate identityPayInfo_UpdateBodyParam, string if_Match, Prefer26 ? prefer, string customerId, string company, string identity, string partyType, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (partyType == null) throw new System.ArgumentNullException("partyType"); if (identityPayInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("identityPayInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPayments(Company='{Company}',Identity='{Identity}',PartyType='{PartyType}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{PartyType}", System.Uri.EscapeDataString(ConvertToString(partyType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(identityPayInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerPrjrepCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous728 > orderby, System.Collections.Generic.IEnumerable < Anonymous729 > select, System.Collections.Generic.IEnumerable < Anonymous730 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerPrjrepCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerPrjrepCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual Response52 CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous728 > orderby, System.Collections.Generic.IEnumerable < Anonymous729 > select, System.Collections.Generic.IEnumerable < Anonymous730 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPrjrepCompaniesGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerPrjrepCompanies /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous728 > orderby, System.Collections.Generic.IEnumerable < Anonymous729 > select, System.Collections.Generic.IEnumerable < Anonymous730 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPrjrepCompanies?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerPrjrepCompanies /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesPostAsync(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous731 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerPrjrepCompaniesPostAsync(customerPrjrepParams_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerPrjrepCompanies /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesPost(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous731 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPrjrepCompaniesPostAsync(customerPrjrepParams_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerPrjrepCompanies /// /// Created CustomerPrjrepParams object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompaniesPostAsync(CustomerPrjrepParamsInsert customerPrjrepParams_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous731 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerPrjrepParams_InsertBodyParam == null) throw new System.ArgumentNullException("customerPrjrepParams_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPrjrepCompanies"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPrjrepParams_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerPrjrepCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous732 > select, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerPrjrepCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')Get(System.Collections.Generic.IEnumerable < Anonymous732 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerPrjrepCompanies by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous732 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPrjrepCompanies(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerPrjrepCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')DeleteAsync(string if_Match, string customerId, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')DeleteAsync(if_Match, customerId, company, identity, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerPrjrepCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')Delete(string if_Match, string customerId, string company, string identity) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')DeleteAsync(if_Match, customerId, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerPrjrepCompanies /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')DeleteAsync(string if_Match, string customerId, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPrjrepCompanies(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerPrjrepCompanies /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')PatchAsync(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer27 ? prefer, string customerId, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')PatchAsync(customerPrjrepParams_UpdateBodyParam, if_Match, prefer, customerId, company, identity, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerPrjrepCompanies /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual CustomerPrjrepParams CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')Patch(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer27 ? prefer, string customerId, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerPrjrepCompanies(Company = '', Identity = '')PatchAsync(customerPrjrepParams_UpdateBodyParam, if_Match, prefer, customerId, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerPrjrepCompanies /// /// Updated CustomerPrjrepParams object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerPrjrepParams /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerPrjrepCompanies(Company = '', Identity = '')PatchAsync(CustomerPrjrepParamsUpdate customerPrjrepParams_UpdateBodyParam, string if_Match, Prefer27 ? prefer, string customerId, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (customerPrjrepParams_UpdateBodyParam == null) throw new System.ArgumentNullException("customerPrjrepParams_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerPrjrepCompanies(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerPrjrepParams_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustOrdCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomersGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous733 > orderby, System.Collections.Generic.IEnumerable < Anonymous734 > select, System.Collections.Generic.IEnumerable < Anonymous735 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustOrdCustomersGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustOrdCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual Response50 CustomerInfoSet(CustomerId= '')CustOrdCustomersGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous733 > orderby, System.Collections.Generic.IEnumerable < Anonymous734 > select, System.Collections.Generic.IEnumerable < Anonymous735 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustOrdCustomersGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustOrdCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomersGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous733 > orderby, System.Collections.Generic.IEnumerable < Anonymous734 > select, System.Collections.Generic.IEnumerable < Anonymous735 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustOrdCustomers?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustOrdCustomers /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomersPostAsync(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous736 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustOrdCustomersPostAsync(custOrdCustomer_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustOrdCustomers /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustomerInfoSet(CustomerId= '')CustOrdCustomersPost(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous736 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustOrdCustomersPostAsync(custOrdCustomer_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustOrdCustomers /// /// Created CustOrdCustomer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomersPostAsync(CustOrdCustomerInsert custOrdCustomer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous736 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (custOrdCustomer_InsertBodyParam == null) throw new System.ArgumentNullException("custOrdCustomer_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustOrdCustomers"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custOrdCustomer_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustOrdCustomers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous737 > select, string customerId) { return CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CustOrdCustomers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')Get(System.Collections.Generic.IEnumerable < Anonymous737 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustOrdCustomers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous737 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustOrdCustomers(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustOrdCustomers /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')DeleteAsync(string if_Match, string customerId) { return CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustOrdCustomers /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')Delete(string if_Match, string customerId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustOrdCustomers /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')DeleteAsync(string if_Match, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustOrdCustomers(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustOrdCustomers /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')PatchAsync(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer28 ? prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')PatchAsync(custOrdCustomer_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Update entity in CustOrdCustomers /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual CustOrdCustomer CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')Patch(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer28 ? prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustOrdCustomers(CustomerId = '')PatchAsync(custOrdCustomer_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustOrdCustomers /// /// Updated CustOrdCustomer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustOrdCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustOrdCustomers(CustomerId = '')PatchAsync(CustOrdCustomerUpdate custOrdCustomer_UpdateBodyParam, string if_Match, Prefer28 ? prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (custOrdCustomer_UpdateBodyParam == null) throw new System.ArgumentNullException("custOrdCustomer_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustOrdCustomers(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(custOrdCustomer_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerCreditInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous738 > orderby, System.Collections.Generic.IEnumerable < Anonymous739 > select, System.Collections.Generic.IEnumerable < Anonymous740 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCreditInfoArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerCreditInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual Response125 CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous738 > orderby, System.Collections.Generic.IEnumerable < Anonymous739 > select, System.Collections.Generic.IEnumerable < Anonymous740 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCreditInfoArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerCreditInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous738 > orderby, System.Collections.Generic.IEnumerable < Anonymous739 > select, System.Collections.Generic.IEnumerable < Anonymous740 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCreditInfoArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerCreditInfoArray /// /// Created CustomerCreditInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayPostAsync(CustomerCreditInfoInsert customerCreditInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous741 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCreditInfoArrayPostAsync(customerCreditInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerCreditInfoArray /// /// Created CustomerCreditInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual CustomerCreditInfo CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayPost(CustomerCreditInfoInsert customerCreditInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous741 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCreditInfoArrayPostAsync(customerCreditInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerCreditInfoArray /// /// Created CustomerCreditInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArrayPostAsync(CustomerCreditInfoInsert customerCreditInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous741 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (customerCreditInfo_InsertBodyParam == null) throw new System.ArgumentNullException("customerCreditInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCreditInfoArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerCreditInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerCreditInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous742 > select, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerCreditInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual CustomerCreditInfo CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')Get(System.Collections.Generic.IEnumerable < Anonymous742 > select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')GetAsync(select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerCreditInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous742 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCreditInfoArray(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerCreditInfoArray /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')DeleteAsync(string if_Match, string customerId, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')DeleteAsync(if_Match, customerId, company, identity, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerCreditInfoArray /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')Delete(string if_Match, string customerId, string company, string identity) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')DeleteAsync(if_Match, customerId, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerCreditInfoArray /// /// E-Tag /// key: CustomerId /// key: Company /// key: Identity /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')DeleteAsync(string if_Match, string customerId, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCreditInfoArray(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerCreditInfoArray /// /// Updated CustomerCreditInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')PatchAsync(CustomerCreditInfoUpdate customerCreditInfo_UpdateBodyParam, string if_Match, Prefer29 ? prefer, string customerId, string company, string identity) { return CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')PatchAsync(customerCreditInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerCreditInfoArray /// /// Updated CustomerCreditInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual CustomerCreditInfo CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')Patch(CustomerCreditInfoUpdate customerCreditInfo_UpdateBodyParam, string if_Match, Prefer29 ? prefer, string customerId, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCreditInfoArray(Company = '', Identity = '')PatchAsync(customerCreditInfo_UpdateBodyParam, if_Match, prefer, customerId, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerCreditInfoArray /// /// Updated CustomerCreditInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: Company /// key: Identity /// response body for entity type CustomerCreditInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCreditInfoArray(Company = '', Identity = '')PatchAsync(CustomerCreditInfoUpdate customerCreditInfo_UpdateBodyParam, string if_Match, Prefer29 ? prefer, string customerId, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); if (customerCreditInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("customerCreditInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCreditInfoArray(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(customerCreditInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerCrmInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous743 > orderby, System.Collections.Generic.IEnumerable < Anonymous744 > select, System.Collections.Generic.IEnumerable < Anonymous745 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCrmInfoArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerCrmInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual Response49 CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous743 > orderby, System.Collections.Generic.IEnumerable < Anonymous744 > select, System.Collections.Generic.IEnumerable < Anonymous745 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCrmInfoArrayGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerCrmInfoArray /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous743 > orderby, System.Collections.Generic.IEnumerable < Anonymous744 > select, System.Collections.Generic.IEnumerable < Anonymous745 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCrmInfoArray?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to CustomerCrmInfoArray /// /// Created CrmCustInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayPostAsync(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous746 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCrmInfoArrayPostAsync(crmCustInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to CustomerCrmInfoArray /// /// Created CrmCustInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayPost(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous746 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCrmInfoArrayPostAsync(crmCustInfo_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to CustomerCrmInfoArray /// /// Created CrmCustInfo object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArrayPostAsync(CrmCustInfoInsert crmCustInfo_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous746 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (crmCustInfo_InsertBodyParam == null) throw new System.ArgumentNullException("crmCustInfo_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCrmInfoArray"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCustInfo_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from CustomerCrmInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous747 > select, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None); } /// /// Get entity from CustomerCrmInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')Get(System.Collections.Generic.IEnumerable < Anonymous747 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')GetAsync(select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from CustomerCrmInfoArray by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous747 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCrmInfoArray(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from CustomerCrmInfoArray /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')DeleteAsync(string if_Match, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None); } /// /// Delete entity from CustomerCrmInfoArray /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')Delete(string if_Match, string customerId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')DeleteAsync(if_Match, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from CustomerCrmInfoArray /// /// E-Tag /// key: CustomerId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')DeleteAsync(string if_Match, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCrmInfoArray(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in CustomerCrmInfoArray /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')PatchAsync(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer30 ? prefer, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')PatchAsync(crmCustInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Update entity in CustomerCrmInfoArray /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual CrmCustInfo CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')Patch(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer30 ? prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerCrmInfoArray(CustomerId = '')PatchAsync(crmCustInfo_UpdateBodyParam, if_Match, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in CustomerCrmInfoArray /// /// Updated CrmCustInfo object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// response body for entity type CrmCustInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerCrmInfoArray(CustomerId = '')PatchAsync(CrmCustInfoUpdate crmCustInfo_UpdateBodyParam, string if_Match, Prefer30 ? prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (crmCustInfo_UpdateBodyParam == null) throw new System.ArgumentNullException("crmCustInfo_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerCrmInfoArray(CustomerId='{CustomerId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(crmCustInfo_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from FrtAccounts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccountsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous748 > orderby, System.Collections.Generic.IEnumerable < Anonymous749 > select, System.Collections.Generic.IEnumerable < Anonymous750 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')FrtAccountsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from FrtAccounts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual Response138 CustomerInfoSet(CustomerId= '')FrtAccountsGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous748 > orderby, System.Collections.Generic.IEnumerable < Anonymous749 > select, System.Collections.Generic.IEnumerable < Anonymous750 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtAccountsGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from FrtAccounts /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccountsGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous748 > orderby, System.Collections.Generic.IEnumerable < Anonymous749 > select, System.Collections.Generic.IEnumerable < Anonymous750 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtAccounts?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to FrtAccounts /// /// Created FrtCustomerAccount object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccountsPostAsync(FrtCustomerAccountInsert frtCustomerAccount_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous751 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')FrtAccountsPostAsync(frtCustomerAccount_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to FrtAccounts /// /// Created FrtCustomerAccount object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual FrtCustomerAccount CustomerInfoSet(CustomerId= '')FrtAccountsPost(FrtCustomerAccountInsert frtCustomerAccount_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous751 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtAccountsPostAsync(frtCustomerAccount_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to FrtAccounts /// /// Created FrtCustomerAccount object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccountsPostAsync(FrtCustomerAccountInsert frtCustomerAccount_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous751 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (frtCustomerAccount_InsertBodyParam == null) throw new System.ArgumentNullException("frtCustomerAccount_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtAccounts"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(frtCustomerAccount_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from FrtAccounts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous752 > select, string customerId, double carrierAccountId) { return CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')GetAsync(select, customerId, carrierAccountId, System.Threading.CancellationToken.None); } /// /// Get entity from FrtAccounts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual FrtCustomerAccount CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')Get(System.Collections.Generic.IEnumerable < Anonymous752 > select, string customerId, double carrierAccountId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')GetAsync(select, customerId, carrierAccountId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from FrtAccounts by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous752 > select, string customerId, double carrierAccountId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (carrierAccountId == null) throw new System.ArgumentNullException("carrierAccountId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtAccounts(CustomerId='{CustomerId}',CarrierAccountId='{CarrierAccountId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CarrierAccountId}", System.Uri.EscapeDataString(ConvertToString(carrierAccountId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from FrtAccounts /// /// E-Tag /// key: CustomerId /// key: CarrierAccountId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')DeleteAsync(string if_Match, string customerId, double carrierAccountId) { return CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')DeleteAsync(if_Match, customerId, carrierAccountId, System.Threading.CancellationToken.None); } /// /// Delete entity from FrtAccounts /// /// E-Tag /// key: CustomerId /// key: CarrierAccountId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')Delete(string if_Match, string customerId, double carrierAccountId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')DeleteAsync(if_Match, customerId, carrierAccountId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from FrtAccounts /// /// E-Tag /// key: CustomerId /// key: CarrierAccountId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')DeleteAsync(string if_Match, string customerId, double carrierAccountId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (carrierAccountId == null) throw new System.ArgumentNullException("carrierAccountId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtAccounts(CustomerId='{CustomerId}',CarrierAccountId='{CarrierAccountId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CarrierAccountId}", System.Uri.EscapeDataString(ConvertToString(carrierAccountId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in FrtAccounts /// /// Updated FrtCustomerAccount object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')PatchAsync(FrtCustomerAccountUpdate frtCustomerAccount_UpdateBodyParam, string if_Match, Prefer31 ? prefer, string customerId, double carrierAccountId) { return CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')PatchAsync(frtCustomerAccount_UpdateBodyParam, if_Match, prefer, customerId, carrierAccountId, System.Threading.CancellationToken.None); } /// /// Update entity in FrtAccounts /// /// Updated FrtCustomerAccount object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual FrtCustomerAccount CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')Patch(FrtCustomerAccountUpdate frtCustomerAccount_UpdateBodyParam, string if_Match, Prefer31 ? prefer, string customerId, double carrierAccountId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtAccounts(CustomerId = '', CarrierAccountId = '')PatchAsync(frtCustomerAccount_UpdateBodyParam, if_Match, prefer, customerId, carrierAccountId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in FrtAccounts /// /// Updated FrtCustomerAccount object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: CarrierAccountId /// response body for entity type FrtCustomerAccount /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtAccounts(CustomerId = '', CarrierAccountId = '')PatchAsync(FrtCustomerAccountUpdate frtCustomerAccount_UpdateBodyParam, string if_Match, Prefer31 ? prefer, string customerId, double carrierAccountId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (carrierAccountId == null) throw new System.ArgumentNullException("carrierAccountId"); if (frtCustomerAccount_UpdateBodyParam == null) throw new System.ArgumentNullException("frtCustomerAccount_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtAccounts(CustomerId='{CustomerId}',CarrierAccountId='{CarrierAccountId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CarrierAccountId}", System.Uri.EscapeDataString(ConvertToString(carrierAccountId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(frtCustomerAccount_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from FrtThirdPartyPayers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous753 > orderby, System.Collections.Generic.IEnumerable < Anonymous754 > select, System.Collections.Generic.IEnumerable < Anonymous755 > expand, string customerId) { return CustomerInfoSet(CustomerId = '')FrtThirdPartyPayersGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from FrtThirdPartyPayers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual Response141 CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersGet(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous753 > orderby, System.Collections.Generic.IEnumerable < Anonymous754 > select, System.Collections.Generic.IEnumerable < Anonymous755 > expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtThirdPartyPayersGetAsync(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from FrtThirdPartyPayers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// key: CustomerId /// response body for entity array FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersGetAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous753 > orderby, System.Collections.Generic.IEnumerable < Anonymous754 > select, System.Collections.Generic.IEnumerable < Anonymous755 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtThirdPartyPayers?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Add new entity to FrtThirdPartyPayers /// /// Created FrtThirdPartyPayer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersPostAsync(FrtThirdPartyPayerInsert frtThirdPartyPayer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous756 > prefer, string customerId) { return CustomerInfoSet(CustomerId = '')FrtThirdPartyPayersPostAsync(frtThirdPartyPayer_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None); } /// /// Add new entity to FrtThirdPartyPayers /// /// Created FrtThirdPartyPayer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual FrtThirdPartyPayer CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersPost(FrtThirdPartyPayerInsert frtThirdPartyPayer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous756 > prefer, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtThirdPartyPayersPostAsync(frtThirdPartyPayer_InsertBodyParam, prefer, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Add new entity to FrtThirdPartyPayers /// /// Created FrtThirdPartyPayer object /// Prefer: return=minimal /// key: CustomerId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayersPostAsync(FrtThirdPartyPayerInsert frtThirdPartyPayer_InsertBodyParam, System.Collections.Generic.IEnumerable < Anonymous756 > prefer, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (frtThirdPartyPayer_InsertBodyParam == null) throw new System.ArgumentNullException("frtThirdPartyPayer_InsertBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtThirdPartyPayers"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", prefer); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(frtThirdPartyPayer_InsertBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entity from FrtThirdPartyPayers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous757 > select, string customerId, double thirdPartyId) { return CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')GetAsync(select, customerId, thirdPartyId, System.Threading.CancellationToken.None); } /// /// Get entity from FrtThirdPartyPayers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual FrtThirdPartyPayer CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')Get(System.Collections.Generic.IEnumerable < Anonymous757 > select, string customerId, double thirdPartyId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')GetAsync(select, customerId, thirdPartyId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entity from FrtThirdPartyPayers by key /// /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')GetAsync(System.Collections.Generic.IEnumerable < Anonymous757 > select, string customerId, double thirdPartyId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (thirdPartyId == null) throw new System.ArgumentNullException("thirdPartyId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtThirdPartyPayers(CustomerId='{CustomerId}',ThirdPartyId='{ThirdPartyId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ThirdPartyId}", System.Uri.EscapeDataString(ConvertToString(thirdPartyId, System.Globalization.CultureInfo.InvariantCulture))); if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Delete entity from FrtThirdPartyPayers /// /// E-Tag /// key: CustomerId /// key: ThirdPartyId /// No Content /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')DeleteAsync(string if_Match, string customerId, double thirdPartyId) { return CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')DeleteAsync(if_Match, customerId, thirdPartyId, System.Threading.CancellationToken.None); } /// /// Delete entity from FrtThirdPartyPayers /// /// E-Tag /// key: CustomerId /// key: ThirdPartyId /// No Content /// A server side error occurred. public virtual void CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')Delete(string if_Match, string customerId, double thirdPartyId) { System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')DeleteAsync(if_Match, customerId, thirdPartyId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Delete entity from FrtThirdPartyPayers /// /// E-Tag /// key: CustomerId /// key: ThirdPartyId /// No Content /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')DeleteAsync(string if_Match, string customerId, double thirdPartyId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (thirdPartyId == null) throw new System.ArgumentNullException("thirdPartyId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtThirdPartyPayers(CustomerId='{CustomerId}',ThirdPartyId='{ThirdPartyId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ThirdPartyId}", System.Uri.EscapeDataString(ConvertToString(thirdPartyId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match == null) throw new System.ArgumentNullException("if_Match"); request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Update entity in FrtThirdPartyPayers /// /// Updated FrtThirdPartyPayer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')PatchAsync(FrtThirdPartyPayerUpdate frtThirdPartyPayer_UpdateBodyParam, string if_Match, Prefer32 ? prefer, string customerId, double thirdPartyId) { return CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')PatchAsync(frtThirdPartyPayer_UpdateBodyParam, if_Match, prefer, customerId, thirdPartyId, System.Threading.CancellationToken.None); } /// /// Update entity in FrtThirdPartyPayers /// /// Updated FrtThirdPartyPayer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual FrtThirdPartyPayer CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')Patch(FrtThirdPartyPayerUpdate frtThirdPartyPayer_UpdateBodyParam, string if_Match, Prefer32 ? prefer, string customerId, double thirdPartyId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')PatchAsync(frtThirdPartyPayer_UpdateBodyParam, if_Match, prefer, customerId, thirdPartyId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Update entity in FrtThirdPartyPayers /// /// Updated FrtThirdPartyPayer object /// E-Tag /// Prefer: return=minimal /// key: CustomerId /// key: ThirdPartyId /// response body for entity type FrtThirdPartyPayer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')FrtThirdPartyPayers(CustomerId = '', ThirdPartyId = '')PatchAsync(FrtThirdPartyPayerUpdate frtThirdPartyPayer_UpdateBodyParam, string if_Match, Prefer32 ? prefer, string customerId, double thirdPartyId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); if (thirdPartyId == null) throw new System.ArgumentNullException("thirdPartyId"); if (frtThirdPartyPayer_UpdateBodyParam == null) throw new System.ArgumentNullException("frtThirdPartyPayer_UpdateBodyParam"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/FrtThirdPartyPayers(CustomerId='{CustomerId}',ThirdPartyId='{ThirdPartyId}')"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ThirdPartyId}", System.Uri.EscapeDataString(ConvertToString(thirdPartyId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (if_Match != null) request_.Headers.TryAddWithoutValidation("If-Match", ConvertToString(if_Match, System.Globalization.CultureInfo.InvariantCulture)); if (prefer != null) request_.Headers.TryAddWithoutValidation("Prefer", ConvertToString(prefer, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(frtThirdPartyPayer_UpdateBodyParam, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PATCH"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 201) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from AssociationNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array AssociationInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')AssociationNoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous758 > orderby, System.Collections.Generic.IEnumerable < Anonymous759 > select, string customerId) { return CustomerInfoSet(CustomerId = '')AssociationNoRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from AssociationNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array AssociationInfo /// A server side error occurred. public virtual Response CustomerInfoSet(CustomerId= '')AssociationNoRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous758 > orderby, System.Collections.Generic.IEnumerable < Anonymous759 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')AssociationNoRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from AssociationNoRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array AssociationInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')AssociationNoRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous758 > orderby, System.Collections.Generic.IEnumerable < Anonymous759 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/AssociationNoRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CorporateFormRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CorporateForm /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CorporateFormRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous760 > orderby, System.Collections.Generic.IEnumerable < Anonymous761 > select, string customerId) { return CustomerInfoSet(CustomerId = '')CorporateFormRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CorporateFormRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CorporateForm /// A server side error occurred. public virtual Response58 CustomerInfoSet(CustomerId= '')CorporateFormRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous760 > orderby, System.Collections.Generic.IEnumerable < Anonymous761 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CorporateFormRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CorporateFormRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CorporateForm /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CorporateFormRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous760 > orderby, System.Collections.Generic.IEnumerable < Anonymous761 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CorporateFormRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from CustomerTaxUsageTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerTaxUsageTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous762 > orderby, System.Collections.Generic.IEnumerable < Anonymous763 > select, string customerId) { return CustomerInfoSet(CustomerId = '')CustomerTaxUsageTypeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from CustomerTaxUsageTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual Response142 CustomerInfoSet(CustomerId= '')CustomerTaxUsageTypeRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous762 > orderby, System.Collections.Generic.IEnumerable < Anonymous763 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')CustomerTaxUsageTypeRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from CustomerTaxUsageTypeRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array CustomerTaxUsageType /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')CustomerTaxUsageTypeRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous762 > orderby, System.Collections.Generic.IEnumerable < Anonymous763 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/CustomerTaxUsageTypeRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Get entities from BusinessClassificationRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessClassification /// A server side error occurred. public virtual System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')BusinessClassificationRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous764 > orderby, System.Collections.Generic.IEnumerable < Anonymous765 > select, string customerId) { return CustomerInfoSet(CustomerId = '')BusinessClassificationRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None); } /// /// Get entities from BusinessClassificationRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessClassification /// A server side error occurred. public virtual Response59 CustomerInfoSet(CustomerId= '')BusinessClassificationRef(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous764 > orderby, System.Collections.Generic.IEnumerable < Anonymous765 > select, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CustomerInfoSet(CustomerId = '')BusinessClassificationRefAsync(top, skip, count, filter, orderby, select, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Get entities from BusinessClassificationRef /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// key: CustomerId /// response body for entity array BusinessClassification /// A server side error occurred. public virtual async System.Threading.Tasks.Task CustomerInfoSet(CustomerId= '')BusinessClassificationRefAsync(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous764 > orderby, System.Collections.Generic.IEnumerable < Anonymous765 > select, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CustomerInfoSet(CustomerId='{CustomerId}')/BusinessClassificationRef?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CreateCustomerContact /// /// response body for action CreateCustomerContact /// A server side error occurred. public virtual System.Threading.Tasks.Task CreateCustomerContactAsync(CreateCustomerContactActionImport createCustomerContact) { return CreateCustomerContactAsync(createCustomerContact, System.Threading.CancellationToken.None); } /// /// Invoke action CreateCustomerContact /// /// response body for action CreateCustomerContact /// A server side error occurred. public virtual CreateCustomerContactActionImportResponse CreateCustomerContact(CreateCustomerContactActionImport createCustomerContact) { return System.Threading.Tasks.Task.Run(async () => await CreateCustomerContactAsync(createCustomerContact, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CreateCustomerContact /// /// response body for action CreateCustomerContact /// A server side error occurred. public virtual async System.Threading.Tasks.Task CreateCustomerContactAsync(CreateCustomerContactActionImport createCustomerContact, System.Threading.CancellationToken cancellationToken) { if (createCustomerContact == null) throw new System.ArgumentNullException("createCustomerContact"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CreateCustomerContact"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(createCustomerContact, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CreateCustomerContactForExistPerson /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task CreateCustomerContactForExistPersonAsync(CreateCustomerContactForExistPersonActionImport createCustomerContactForExistPerson) { return CreateCustomerContactForExistPersonAsync(createCustomerContactForExistPerson, System.Threading.CancellationToken.None); } /// /// Invoke action CreateCustomerContactForExistPerson /// /// Accepted /// A server side error occurred. public virtual void CreateCustomerContactForExistPerson(CreateCustomerContactForExistPersonActionImport createCustomerContactForExistPerson) { System.Threading.Tasks.Task.Run(async () => await CreateCustomerContactForExistPersonAsync(createCustomerContactForExistPerson, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CreateCustomerContactForExistPerson /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task CreateCustomerContactForExistPersonAsync(CreateCustomerContactForExistPersonActionImport createCustomerContactForExistPerson, System.Threading.CancellationToken cancellationToken) { if (createCustomerContactForExistPerson == null) throw new System.ArgumentNullException("createCustomerContactForExistPerson"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CreateCustomerContactForExistPerson"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(createCustomerContactForExistPerson, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CheckDefaultCommMethod /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckDefaultCommMethodAsync(CheckDefaultCommMethodActionImport checkDefaultCommMethod) { return CheckDefaultCommMethodAsync(checkDefaultCommMethod, System.Threading.CancellationToken.None); } /// /// Invoke action CheckDefaultCommMethod /// /// Accepted /// A server side error occurred. public virtual void CheckDefaultCommMethod(CheckDefaultCommMethodActionImport checkDefaultCommMethod) { System.Threading.Tasks.Task.Run(async () => await CheckDefaultCommMethodAsync(checkDefaultCommMethod, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CheckDefaultCommMethod /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckDefaultCommMethodAsync(CheckDefaultCommMethodActionImport checkDefaultCommMethod, System.Threading.CancellationToken cancellationToken) { if (checkDefaultCommMethod == null) throw new System.ArgumentNullException("checkDefaultCommMethod"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckDefaultCommMethod"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(checkDefaultCommMethod, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CopyExistingCustomer /// /// response body for action CopyExistingCustomer /// A server side error occurred. public virtual System.Threading.Tasks.Task CopyExistingCustomerAsync(CopyExistingCustomerActionImport copyExistingCustomer) { return CopyExistingCustomerAsync(copyExistingCustomer, System.Threading.CancellationToken.None); } /// /// Invoke action CopyExistingCustomer /// /// response body for action CopyExistingCustomer /// A server side error occurred. public virtual CopyExistingCustomerActionImportResponse CopyExistingCustomer(CopyExistingCustomerActionImport copyExistingCustomer) { return System.Threading.Tasks.Task.Run(async () => await CopyExistingCustomerAsync(copyExistingCustomer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CopyExistingCustomer /// /// response body for action CopyExistingCustomer /// A server side error occurred. public virtual async System.Threading.Tasks.Task CopyExistingCustomerAsync(CopyExistingCustomerActionImport copyExistingCustomer, System.Threading.CancellationToken cancellationToken) { if (copyExistingCustomer == null) throw new System.ArgumentNullException("copyExistingCustomer"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CopyExistingCustomer"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(copyExistingCustomer, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action ChangeCustomerCategory /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task ChangeCustomerCategoryAsync(ChangeCustomerCategoryActionImport changeCustomerCategory) { return ChangeCustomerCategoryAsync(changeCustomerCategory, System.Threading.CancellationToken.None); } /// /// Invoke action ChangeCustomerCategory /// /// Accepted /// A server side error occurred. public virtual void ChangeCustomerCategory(ChangeCustomerCategoryActionImport changeCustomerCategory) { System.Threading.Tasks.Task.Run(async () => await ChangeCustomerCategoryAsync(changeCustomerCategory, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action ChangeCustomerCategory /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task ChangeCustomerCategoryAsync(ChangeCustomerCategoryActionImport changeCustomerCategory, System.Threading.CancellationToken cancellationToken) { if (changeCustomerCategory == null) throw new System.ArgumentNullException("changeCustomerCategory"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ChangeCustomerCategory"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(changeCustomerCategory, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action ValidateTaxIdNumbersCheckVatService /// /// response body for action ValidateTaxIdNumbersCheckVatService /// A server side error occurred. public virtual System.Threading.Tasks.Task ValidateTaxIdNumbersCheckVatServiceAsync(ValidateTaxIdNumbersCheckVatServiceActionImport validateTaxIdNumbersCheckVatService) { return ValidateTaxIdNumbersCheckVatServiceAsync(validateTaxIdNumbersCheckVatService, System.Threading.CancellationToken.None); } /// /// Invoke action ValidateTaxIdNumbersCheckVatService /// /// response body for action ValidateTaxIdNumbersCheckVatService /// A server side error occurred. public virtual TaxIdNumberValidationResultsStructure ValidateTaxIdNumbersCheckVatService(ValidateTaxIdNumbersCheckVatServiceActionImport validateTaxIdNumbersCheckVatService) { return System.Threading.Tasks.Task.Run(async () => await ValidateTaxIdNumbersCheckVatServiceAsync(validateTaxIdNumbersCheckVatService, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action ValidateTaxIdNumbersCheckVatService /// /// response body for action ValidateTaxIdNumbersCheckVatService /// A server side error occurred. public virtual async System.Threading.Tasks.Task ValidateTaxIdNumbersCheckVatServiceAsync(ValidateTaxIdNumbersCheckVatServiceActionImport validateTaxIdNumbersCheckVatService, System.Threading.CancellationToken cancellationToken) { if (validateTaxIdNumbersCheckVatService == null) throw new System.ArgumentNullException("validateTaxIdNumbersCheckVatService"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ValidateTaxIdNumbersCheckVatService"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(validateTaxIdNumbersCheckVatService, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action ValidateNoInvoiceCopies /// /// response body for action ValidateNoInvoiceCopies /// A server side error occurred. public virtual System.Threading.Tasks.Task ValidateNoInvoiceCopiesAsync(ValidateNoInvoiceCopiesActionImport validateNoInvoiceCopies) { return ValidateNoInvoiceCopiesAsync(validateNoInvoiceCopies, System.Threading.CancellationToken.None); } /// /// Invoke action ValidateNoInvoiceCopies /// /// response body for action ValidateNoInvoiceCopies /// A server side error occurred. public virtual ValidateNoInvoiceCopiesActionImportResponse ValidateNoInvoiceCopies(ValidateNoInvoiceCopiesActionImport validateNoInvoiceCopies) { return System.Threading.Tasks.Task.Run(async () => await ValidateNoInvoiceCopiesAsync(validateNoInvoiceCopies, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action ValidateNoInvoiceCopies /// /// response body for action ValidateNoInvoiceCopies /// A server side error occurred. public virtual async System.Threading.Tasks.Task ValidateNoInvoiceCopiesAsync(ValidateNoInvoiceCopiesActionImport validateNoInvoiceCopies, System.Threading.CancellationToken cancellationToken) { if (validateNoInvoiceCopies == null) throw new System.ArgumentNullException("validateNoInvoiceCopies"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ValidateNoInvoiceCopies"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(validateNoInvoiceCopies, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action UpdateItEinvoiceBasicData /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task UpdateItEinvoiceBasicDataAsync(UpdateItEinvoiceBasicDataActionImport updateItEinvoiceBasicData) { return UpdateItEinvoiceBasicDataAsync(updateItEinvoiceBasicData, System.Threading.CancellationToken.None); } /// /// Invoke action UpdateItEinvoiceBasicData /// /// Accepted /// A server side error occurred. public virtual void UpdateItEinvoiceBasicData(UpdateItEinvoiceBasicDataActionImport updateItEinvoiceBasicData) { System.Threading.Tasks.Task.Run(async () => await UpdateItEinvoiceBasicDataAsync(updateItEinvoiceBasicData, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action UpdateItEinvoiceBasicData /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task UpdateItEinvoiceBasicDataAsync(UpdateItEinvoiceBasicDataActionImport updateItEinvoiceBasicData, System.Threading.CancellationToken cancellationToken) { if (updateItEinvoiceBasicData == null) throw new System.ArgumentNullException("updateItEinvoiceBasicData"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/UpdateItEinvoiceBasicData"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(updateItEinvoiceBasicData, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CheckDefaultMethod /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckDefaultMethodAsync(CheckDefaultMethodActionImport checkDefaultMethod) { return CheckDefaultMethodAsync(checkDefaultMethod, System.Threading.CancellationToken.None); } /// /// Invoke action CheckDefaultMethod /// /// Accepted /// A server side error occurred. public virtual void CheckDefaultMethod(CheckDefaultMethodActionImport checkDefaultMethod) { System.Threading.Tasks.Task.Run(async () => await CheckDefaultMethodAsync(checkDefaultMethod, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CheckDefaultMethod /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckDefaultMethodAsync(CheckDefaultMethodActionImport checkDefaultMethod, System.Threading.CancellationToken cancellationToken) { if (checkDefaultMethod == null) throw new System.ArgumentNullException("checkDefaultMethod"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckDefaultMethod"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(checkDefaultMethod, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action GetResultKeyList /// /// response body for action GetResultKeyList /// A server side error occurred. public virtual System.Threading.Tasks.Task GetResultKeyListAsync(GetResultKeyListActionImport getResultKeyList) { return GetResultKeyListAsync(getResultKeyList, System.Threading.CancellationToken.None); } /// /// Invoke action GetResultKeyList /// /// response body for action GetResultKeyList /// A server side error occurred. public virtual GetResultKeyListActionImportResponse GetResultKeyList(GetResultKeyListActionImport getResultKeyList) { return System.Threading.Tasks.Task.Run(async () => await GetResultKeyListAsync(getResultKeyList, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action GetResultKeyList /// /// response body for action GetResultKeyList /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetResultKeyListAsync(GetResultKeyListActionImport getResultKeyList, System.Threading.CancellationToken cancellationToken) { if (getResultKeyList == null) throw new System.ArgumentNullException("getResultKeyList"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetResultKeyList"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(getResultKeyList, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action AddSelectedCustomer /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task AddSelectedCustomerAsync(AddSelectedCustomerActionImport addSelectedCustomer) { return AddSelectedCustomerAsync(addSelectedCustomer, System.Threading.CancellationToken.None); } /// /// Invoke action AddSelectedCustomer /// /// Accepted /// A server side error occurred. public virtual void AddSelectedCustomer(AddSelectedCustomerActionImport addSelectedCustomer) { System.Threading.Tasks.Task.Run(async () => await AddSelectedCustomerAsync(addSelectedCustomer, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action AddSelectedCustomer /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task AddSelectedCustomerAsync(AddSelectedCustomerActionImport addSelectedCustomer, System.Threading.CancellationToken cancellationToken) { if (addSelectedCustomer == null) throw new System.ArgumentNullException("addSelectedCustomer"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AddSelectedCustomer"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(addSelectedCustomer, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CheckDefaultAddressType /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckDefaultAddressTypeAsync(CheckDefaultAddressTypeActionImport checkDefaultAddressType) { return CheckDefaultAddressTypeAsync(checkDefaultAddressType, System.Threading.CancellationToken.None); } /// /// Invoke action CheckDefaultAddressType /// /// Accepted /// A server side error occurred. public virtual void CheckDefaultAddressType(CheckDefaultAddressTypeActionImport checkDefaultAddressType) { System.Threading.Tasks.Task.Run(async () => await CheckDefaultAddressTypeAsync(checkDefaultAddressType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CheckDefaultAddressType /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckDefaultAddressTypeAsync(CheckDefaultAddressTypeActionImport checkDefaultAddressType, System.Threading.CancellationToken cancellationToken) { if (checkDefaultAddressType == null) throw new System.ArgumentNullException("checkDefaultAddressType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckDefaultAddressType"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { var content_ = new System.Net.Http.StringContent(System.Text.Json.JsonSerializer.Serialize(checkDefaultAddressType, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke action CheckCreateCategoryCustomer /// /// Accepted /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckCreateCategoryCustomerAsync() { return CheckCreateCategoryCustomerAsync(System.Threading.CancellationToken.None); } /// /// Invoke action CheckCreateCategoryCustomer /// /// Accepted /// A server side error occurred. public virtual void CheckCreateCategoryCustomer() { System.Threading.Tasks.Task.Run(async () => await CheckCreateCategoryCustomerAsync(System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke action CheckCreateCategoryCustomer /// /// Accepted /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckCreateCategoryCustomerAsync(System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckCreateCategoryCustomer"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 202) { return; } else if (status_ == 204) { return; } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function ExistingPersonInfo /// /// response body for function ExistingPersonInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task ExistingPersonInfo(PersonId= '')Async(string personId) { return ExistingPersonInfo(PersonId = '')Async(personId, System.Threading.CancellationToken.None); } /// /// Invoke function ExistingPersonInfo /// /// response body for function ExistingPersonInfo /// A server side error occurred. public virtual ExistingPersonInfoStructure ExistingPersonInfo(PersonId= '')(string personId) { return System.Threading.Tasks.Task.Run(async () => await ExistingPersonInfo(PersonId = '')Async(personId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function ExistingPersonInfo /// /// response body for function ExistingPersonInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task ExistingPersonInfo(PersonId= '')Async(string personId, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ExistingPersonInfo(PersonId='{PersonId}')"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FormatFullName /// /// response body for function FormatFullName /// A server side error occurred. public virtual System.Threading.Tasks.Task FormatFullName(Name= '')Async(string name) { return FormatFullName(Name = '')Async(name, System.Threading.CancellationToken.None); } /// /// Invoke function FormatFullName /// /// response body for function FormatFullName /// A server side error occurred. public virtual FullNameStructure FormatFullName(Name= '')(string name) { return System.Threading.Tasks.Task.Run(async () => await FormatFullName(Name = '')Async(name, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FormatFullName /// /// response body for function FormatFullName /// A server side error occurred. public virtual async System.Threading.Tasks.Task FormatFullName(Name= '')Async(string name, System.Threading.CancellationToken cancellationToken) { if (name == null) throw new System.ArgumentNullException("name"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FormatFullName(Name='{Name}')"); urlBuilder_.Replace("{Name}", System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function CheckPersonExists /// /// response body for function CheckPersonExists /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckPersonExists(PersonId= '')Async(string personId) { return CheckPersonExists(PersonId = '')Async(personId, System.Threading.CancellationToken.None); } /// /// Invoke function CheckPersonExists /// /// response body for function CheckPersonExists /// A server side error occurred. public virtual CheckPersonExistsFunctionImportResponse CheckPersonExists(PersonId= '')(string personId) { return System.Threading.Tasks.Task.Run(async () => await CheckPersonExists(PersonId = '')Async(personId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function CheckPersonExists /// /// response body for function CheckPersonExists /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckPersonExists(PersonId= '')Async(string personId, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckPersonExists(PersonId='{PersonId}')"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function ActivePersons /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ActivePersons /// A server side error occurred. public virtual System.Threading.Tasks.Task ActivePersons()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous766 > orderby, System.Collections.Generic.IEnumerable < Anonymous767 > select) { return ActivePersons()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Invoke function ActivePersons /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ActivePersons /// A server side error occurred. public virtual Response150 ActivePersons()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ActivePersons()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function ActivePersons /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ActivePersons /// A server side error occurred. public virtual async System.Threading.Tasks.Task ActivePersons()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous766 > orderby, System.Collections.Generic.IEnumerable < Anonymous767 > select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ActivePersons()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function AssociationNoExist /// /// response body for function AssociationNoExist /// A server side error occurred. public virtual System.Threading.Tasks.Task AssociationNoExist(AssociationNo= '')Async(string associationNo) { return AssociationNoExist(AssociationNo = '')Async(associationNo, System.Threading.CancellationToken.None); } /// /// Invoke function AssociationNoExist /// /// response body for function AssociationNoExist /// A server side error occurred. public virtual AssociationNoExistFunctionImportResponse AssociationNoExist(AssociationNo= '')(string associationNo) { return System.Threading.Tasks.Task.Run(async () => await AssociationNoExist(AssociationNo = '')Async(associationNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function AssociationNoExist /// /// response body for function AssociationNoExist /// A server side error occurred. public virtual async System.Threading.Tasks.Task AssociationNoExist(AssociationNo= '')Async(string associationNo, System.Threading.CancellationToken cancellationToken) { if (associationNo == null) throw new System.ArgumentNullException("associationNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AssociationNoExist(AssociationNo='{AssociationNo}')"); urlBuilder_.Replace("{AssociationNo}", System.Uri.EscapeDataString(ConvertToString(associationNo, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchDefaultCompany /// /// response body for function FetchDefaultCompany /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchDefaultCompany()Async() { return FetchDefaultCompany()Async(System.Threading.CancellationToken.None); } /// /// Invoke function FetchDefaultCompany /// /// response body for function FetchDefaultCompany /// A server side error occurred. public virtual FetchDefaultCompanyFunctionImportResponse FetchDefaultCompany()() { return System.Threading.Tasks.Task.Run(async () => await FetchDefaultCompany()Async(System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchDefaultCompany /// /// response body for function FetchDefaultCompany /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchDefaultCompany()Async(System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchDefaultCompany()"); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function CompanyOrderInfo /// /// response body for function CompanyOrderInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task CompanyOrderInfo(Company= '')Async(string company) { return CompanyOrderInfo(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function CompanyOrderInfo /// /// response body for function CompanyOrderInfo /// A server side error occurred. public virtual CompanyOrderInfoStructure CompanyOrderInfo(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await CompanyOrderInfo(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function CompanyOrderInfo /// /// response body for function CompanyOrderInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task CompanyOrderInfo(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CompanyOrderInfo(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TempCustomerInfo /// /// response body for function TempCustomerInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task TempCustomerInfo(TempCustomerId= '')Async(string tempCustomerId) { return TempCustomerInfo(TempCustomerId = '')Async(tempCustomerId, System.Threading.CancellationToken.None); } /// /// Invoke function TempCustomerInfo /// /// response body for function TempCustomerInfo /// A server side error occurred. public virtual TempCustomerInfoFunctionImportResponse TempCustomerInfo(TempCustomerId= '')(string tempCustomerId) { return System.Threading.Tasks.Task.Run(async () => await TempCustomerInfo(TempCustomerId = '')Async(tempCustomerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TempCustomerInfo /// /// response body for function TempCustomerInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task TempCustomerInfo(TempCustomerId= '')Async(string tempCustomerId, System.Threading.CancellationToken cancellationToken) { if (tempCustomerId == null) throw new System.ArgumentNullException("tempCustomerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TempCustomerInfo(TempCustomerId='{TempCustomerId}')"); urlBuilder_.Replace("{TempCustomerId}", System.Uri.EscapeDataString(ConvertToString(tempCustomerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCompanyDefaults /// /// response body for function GetCompanyDefaults /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCompanyDefaults(Company= '')Async(string company) { return GetCompanyDefaults(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function GetCompanyDefaults /// /// response body for function GetCompanyDefaults /// A server side error occurred. public virtual CompanyDefaultsStructure GetCompanyDefaults(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await GetCompanyDefaults(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCompanyDefaults /// /// response body for function GetCompanyDefaults /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCompanyDefaults(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCompanyDefaults(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchTaxLiabilityForCountry /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountry /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchTaxLiabilityForCountry(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous768 > orderby, System.Collections.Generic.IEnumerable < Anonymous769 > select, string countryCode) { return FetchTaxLiabilityForCountry(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None); } /// /// Invoke function FetchTaxLiabilityForCountry /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountry /// A server side error occurred. public virtual Response151 FetchTaxLiabilityForCountry(CountryCode= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string countryCode) { return System.Threading.Tasks.Task.Run(async () => await FetchTaxLiabilityForCountry(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchTaxLiabilityForCountry /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountry /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchTaxLiabilityForCountry(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous768 > orderby, System.Collections.Generic.IEnumerable < Anonymous769 > select, string countryCode, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchTaxLiabilityForCountry(CountryCode='{CountryCode}')?"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchTaxLiabilityForCountryExcludeExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountryExcludeExempt /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchTaxLiabilityForCountryExcludeExempt(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous770 > orderby, System.Collections.Generic.IEnumerable < Anonymous771 > select, CountryCode countryCode) { return FetchTaxLiabilityForCountryExcludeExempt(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None); } /// /// Invoke function FetchTaxLiabilityForCountryExcludeExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountryExcludeExempt /// A server side error occurred. public virtual Response152 FetchTaxLiabilityForCountryExcludeExempt(CountryCode= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, CountryCode countryCode) { return System.Threading.Tasks.Task.Run(async () => await FetchTaxLiabilityForCountryExcludeExempt(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchTaxLiabilityForCountryExcludeExempt /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function FetchTaxLiabilityForCountryExcludeExempt /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchTaxLiabilityForCountryExcludeExempt(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous770 > orderby, System.Collections.Generic.IEnumerable < Anonymous771 > select, CountryCode countryCode, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchTaxLiabilityForCountryExcludeExempt(CountryCode='{CountryCode}')?"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual System.Threading.Tasks.Task TaxCodeRestrictedFetchValidTaxCodes(ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous772 > orderby, System.Collections.Generic.IEnumerable < Anonymous773 > select, string validationDate) { return TaxCodeRestrictedFetchValidTaxCodes(ValidationDate =)Async(top, skip, count, filter, orderby, select, validationDate, System.Threading.CancellationToken.None); } /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual Response153 TaxCodeRestrictedFetchValidTaxCodes(ValidationDate=)(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string validationDate) { return System.Threading.Tasks.Task.Run(async () => await TaxCodeRestrictedFetchValidTaxCodes(ValidationDate =)Async(top, skip, count, filter, orderby, select, validationDate, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual async System.Threading.Tasks.Task TaxCodeRestrictedFetchValidTaxCodes(ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous772 > orderby, System.Collections.Generic.IEnumerable < Anonymous773 > select, string validationDate, System.Threading.CancellationToken cancellationToken) { if (validationDate == null) throw new System.ArgumentNullException("validationDate"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TaxCodeRestrictedFetchValidTaxCodes(ValidationDate={ValidationDate})?"); urlBuilder_.Replace("{ValidationDate}", System.Uri.EscapeDataString(ConvertToString(validationDate, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// A server side error occurred. public virtual System.Threading.Tasks.Task TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory= '', ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous774 > orderby, System.Collections.Generic.IEnumerable < Anonymous775 > select, TaxTypeCategory taxTypeCategory, string validationDate) { return TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory = '', ValidationDate =)Async(top, skip, count, filter, orderby, select, taxTypeCategory, validationDate, System.Threading.CancellationToken.None); } /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// A server side error occurred. public virtual Response154 TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory= '', ValidationDate=)(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, TaxTypeCategory taxTypeCategory, string validationDate) { return System.Threading.Tasks.Task.Run(async () => await TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory = '', ValidationDate =)Async(top, skip, count, filter, orderby, select, taxTypeCategory, validationDate, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory /// A server side error occurred. public virtual async System.Threading.Tasks.Task TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory= '', ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous774 > orderby, System.Collections.Generic.IEnumerable < Anonymous775 > select, TaxTypeCategory taxTypeCategory, string validationDate, System.Threading.CancellationToken cancellationToken) { if (taxTypeCategory == null) throw new System.ArgumentNullException("taxTypeCategory"); if (validationDate == null) throw new System.ArgumentNullException("validationDate"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TaxCodeRestrictedFetchValidTaxCodesPerTaxcCategory(TaxTypeCategory='{TaxTypeCategory}',ValidationDate={ValidationDate})?"); urlBuilder_.Replace("{TaxTypeCategory}", System.Uri.EscapeDataString(ConvertToString(taxTypeCategory, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ValidationDate}", System.Uri.EscapeDataString(ConvertToString(validationDate, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TaxCodeExemptRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeExemptRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual System.Threading.Tasks.Task TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous776 > orderby, System.Collections.Generic.IEnumerable < Anonymous777 > select, string validationDate) { return TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate =)Async(top, skip, count, filter, orderby, select, validationDate, System.Threading.CancellationToken.None); } /// /// Invoke function TaxCodeExemptRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeExemptRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual Response155 TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate=)(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string validationDate) { return System.Threading.Tasks.Task.Run(async () => await TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate =)Async(top, skip, count, filter, orderby, select, validationDate, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TaxCodeExemptRestrictedFetchValidTaxCodes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxCodeExemptRestrictedFetchValidTaxCodes /// A server side error occurred. public virtual async System.Threading.Tasks.Task TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate=)Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous776 > orderby, System.Collections.Generic.IEnumerable < Anonymous777 > select, string validationDate, System.Threading.CancellationToken cancellationToken) { if (validationDate == null) throw new System.ArgumentNullException("validationDate"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TaxCodeExemptRestrictedFetchValidTaxCodes(ValidationDate={ValidationDate})?"); urlBuilder_.Replace("{ValidationDate}", System.Uri.EscapeDataString(ConvertToString(validationDate, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TaxBookIdPerPartyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxBookIdPerPartyType /// A server side error occurred. public virtual System.Threading.Tasks.Task TaxBookIdPerPartyType()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous778 > orderby, System.Collections.Generic.IEnumerable < Anonymous779 > select) { return TaxBookIdPerPartyType()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Invoke function TaxBookIdPerPartyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxBookIdPerPartyType /// A server side error occurred. public virtual Response156 TaxBookIdPerPartyType()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await TaxBookIdPerPartyType()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TaxBookIdPerPartyType /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxBookIdPerPartyType /// A server side error occurred. public virtual async System.Threading.Tasks.Task TaxBookIdPerPartyType()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous778 > orderby, System.Collections.Generic.IEnumerable < Anonymous779 > select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TaxBookIdPerPartyType()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetTaxIdNumberMessages /// /// response body for function GetTaxIdNumberMessages /// A server side error occurred. public virtual System.Threading.Tasks.Task GetTaxIdNumberMessages(InvalidCharacter= '', NoCountryCode= '', NotEuCountryCode= '', InvalidTaxId= '', ItInvalid1= '', ItInvalid2= '', ItInvalid3= '', NetworkError= '')Async(string invalidCharacter, string noCountryCode, string notEuCountryCode, string invalidTaxId, string itInvalid1, string itInvalid2, string itInvalid3, string networkError) { return GetTaxIdNumberMessages(InvalidCharacter = '', NoCountryCode = '', NotEuCountryCode = '', InvalidTaxId = '', ItInvalid1 = '', ItInvalid2 = '', ItInvalid3 = '', NetworkError = '')Async(invalidCharacter, noCountryCode, notEuCountryCode, invalidTaxId, itInvalid1, itInvalid2, itInvalid3, networkError, System.Threading.CancellationToken.None); } /// /// Invoke function GetTaxIdNumberMessages /// /// response body for function GetTaxIdNumberMessages /// A server side error occurred. public virtual TaxIdNumberValidationResultsStructure GetTaxIdNumberMessages(InvalidCharacter= '', NoCountryCode= '', NotEuCountryCode= '', InvalidTaxId= '', ItInvalid1= '', ItInvalid2= '', ItInvalid3= '', NetworkError= '')(string invalidCharacter, string noCountryCode, string notEuCountryCode, string invalidTaxId, string itInvalid1, string itInvalid2, string itInvalid3, string networkError) { return System.Threading.Tasks.Task.Run(async () => await GetTaxIdNumberMessages(InvalidCharacter = '', NoCountryCode = '', NotEuCountryCode = '', InvalidTaxId = '', ItInvalid1 = '', ItInvalid2 = '', ItInvalid3 = '', NetworkError = '')Async(invalidCharacter, noCountryCode, notEuCountryCode, invalidTaxId, itInvalid1, itInvalid2, itInvalid3, networkError, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetTaxIdNumberMessages /// /// response body for function GetTaxIdNumberMessages /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetTaxIdNumberMessages(InvalidCharacter= '', NoCountryCode= '', NotEuCountryCode= '', InvalidTaxId= '', ItInvalid1= '', ItInvalid2= '', ItInvalid3= '', NetworkError= '')Async(string invalidCharacter, string noCountryCode, string notEuCountryCode, string invalidTaxId, string itInvalid1, string itInvalid2, string itInvalid3, string networkError, System.Threading.CancellationToken cancellationToken) { if (invalidCharacter == null) throw new System.ArgumentNullException("invalidCharacter"); if (noCountryCode == null) throw new System.ArgumentNullException("noCountryCode"); if (notEuCountryCode == null) throw new System.ArgumentNullException("notEuCountryCode"); if (invalidTaxId == null) throw new System.ArgumentNullException("invalidTaxId"); if (itInvalid1 == null) throw new System.ArgumentNullException("itInvalid1"); if (itInvalid2 == null) throw new System.ArgumentNullException("itInvalid2"); if (itInvalid3 == null) throw new System.ArgumentNullException("itInvalid3"); if (networkError == null) throw new System.ArgumentNullException("networkError"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetTaxIdNumberMessages(InvalidCharacter='{InvalidCharacter}',NoCountryCode='{NoCountryCode}',NotEuCountryCode='{NotEuCountryCode}',InvalidTaxId='{InvalidTaxId}',ItInvalid1='{ItInvalid1}',ItInvalid2='{ItInvalid2}',ItInvalid3='{ItInvalid3}',NetworkError='{NetworkError}')"); urlBuilder_.Replace("{InvalidCharacter}", System.Uri.EscapeDataString(ConvertToString(invalidCharacter, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NoCountryCode}", System.Uri.EscapeDataString(ConvertToString(noCountryCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NotEuCountryCode}", System.Uri.EscapeDataString(ConvertToString(notEuCountryCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{InvalidTaxId}", System.Uri.EscapeDataString(ConvertToString(invalidTaxId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ItInvalid1}", System.Uri.EscapeDataString(ConvertToString(itInvalid1, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ItInvalid2}", System.Uri.EscapeDataString(ConvertToString(itInvalid2, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ItInvalid3}", System.Uri.EscapeDataString(ConvertToString(itInvalid3, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{NetworkError}", System.Uri.EscapeDataString(ConvertToString(networkError, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function TaxIdTypesPerCompany /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxIdTypesPerCompany /// A server side error occurred. public virtual System.Threading.Tasks.Task TaxIdTypesPerCompany(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous780 > orderby, System.Collections.Generic.IEnumerable < Anonymous781 > select, string countryCode) { return TaxIdTypesPerCompany(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None); } /// /// Invoke function TaxIdTypesPerCompany /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxIdTypesPerCompany /// A server side error occurred. public virtual Response157 TaxIdTypesPerCompany(CountryCode= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string countryCode) { return System.Threading.Tasks.Task.Run(async () => await TaxIdTypesPerCompany(CountryCode = '')Async(top, skip, count, filter, orderby, select, countryCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function TaxIdTypesPerCompany /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function TaxIdTypesPerCompany /// A server side error occurred. public virtual async System.Threading.Tasks.Task TaxIdTypesPerCompany(CountryCode= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous780 > orderby, System.Collections.Generic.IEnumerable < Anonymous781 > select, string countryCode, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/TaxIdTypesPerCompany(CountryCode='{CountryCode}')?"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchCountryCode /// /// response body for function FetchCountryCode /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchCountryCode(CountryCode= '')Async(CountryCode2 countryCode) { return FetchCountryCode(CountryCode = '')Async(countryCode, System.Threading.CancellationToken.None); } /// /// Invoke function FetchCountryCode /// /// response body for function FetchCountryCode /// A server side error occurred. public virtual FetchCountryCodeFunctionImportResponse FetchCountryCode(CountryCode= '')(CountryCode2 countryCode) { return System.Threading.Tasks.Task.Run(async () => await FetchCountryCode(CountryCode = '')Async(countryCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchCountryCode /// /// response body for function FetchCountryCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchCountryCode(CountryCode= '')Async(CountryCode2 countryCode, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchCountryCode(CountryCode='{CountryCode}')"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchCompanyInfo /// /// response body for function FetchCompanyInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchCompanyInfo(Company= '')Async(string company) { return FetchCompanyInfo(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function FetchCompanyInfo /// /// response body for function FetchCompanyInfo /// A server side error occurred. public virtual CompanyInfoStructure FetchCompanyInfo(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await FetchCompanyInfo(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchCompanyInfo /// /// response body for function FetchCompanyInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchCompanyInfo(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchCompanyInfo(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefCurrRateTypesEmu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypesEmu /// A server side error occurred. public virtual System.Threading.Tasks.Task DefCurrRateTypesEmu(AccCurr= '', Eur= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous782 > orderby, System.Collections.Generic.IEnumerable < Anonymous783 > select, string accCurr, string eur) { return DefCurrRateTypesEmu(AccCurr = '', Eur = '')Async(top, skip, count, filter, orderby, select, accCurr, eur, System.Threading.CancellationToken.None); } /// /// Invoke function DefCurrRateTypesEmu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypesEmu /// A server side error occurred. public virtual Response158 DefCurrRateTypesEmu(AccCurr= '', Eur= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string accCurr, string eur) { return System.Threading.Tasks.Task.Run(async () => await DefCurrRateTypesEmu(AccCurr = '', Eur = '')Async(top, skip, count, filter, orderby, select, accCurr, eur, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefCurrRateTypesEmu /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypesEmu /// A server side error occurred. public virtual async System.Threading.Tasks.Task DefCurrRateTypesEmu(AccCurr= '', Eur= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous782 > orderby, System.Collections.Generic.IEnumerable < Anonymous783 > select, string accCurr, string eur, System.Threading.CancellationToken cancellationToken) { if (accCurr == null) throw new System.ArgumentNullException("accCurr"); if (eur == null) throw new System.ArgumentNullException("eur"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/DefCurrRateTypesEmu(AccCurr='{AccCurr}',Eur='{Eur}')?"); urlBuilder_.Replace("{AccCurr}", System.Uri.EscapeDataString(ConvertToString(accCurr, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Eur}", System.Uri.EscapeDataString(ConvertToString(eur, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefCurrRateTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypes /// A server side error occurred. public virtual System.Threading.Tasks.Task DefCurrRateTypes(AccCurr= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous784 > orderby, System.Collections.Generic.IEnumerable < Anonymous785 > select, string accCurr) { return DefCurrRateTypes(AccCurr = '')Async(top, skip, count, filter, orderby, select, accCurr, System.Threading.CancellationToken.None); } /// /// Invoke function DefCurrRateTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypes /// A server side error occurred. public virtual Response159 DefCurrRateTypes(AccCurr= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string accCurr) { return System.Threading.Tasks.Task.Run(async () => await DefCurrRateTypes(AccCurr = '')Async(top, skip, count, filter, orderby, select, accCurr, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefCurrRateTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function DefCurrRateTypes /// A server side error occurred. public virtual async System.Threading.Tasks.Task DefCurrRateTypes(AccCurr= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous784 > orderby, System.Collections.Generic.IEnumerable < Anonymous785 > select, string accCurr, System.Threading.CancellationToken cancellationToken) { if (accCurr == null) throw new System.ArgumentNullException("accCurr"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/DefCurrRateTypes(AccCurr='{AccCurr}')?"); urlBuilder_.Replace("{AccCurr}", System.Uri.EscapeDataString(ConvertToString(accCurr, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCustomerDefinedEmail /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerDefinedEmail /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCustomerDefinedEmail()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous786 > orderby, System.Collections.Generic.IEnumerable < Anonymous787 > select, System.Collections.Generic.IEnumerable < Anonymous788 > expand) { return GetCustomerDefinedEmail()Async(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Invoke function GetCustomerDefinedEmail /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerDefinedEmail /// A server side error occurred. public virtual Response160 GetCustomerDefinedEmail()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await GetCustomerDefinedEmail()Async(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCustomerDefinedEmail /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerDefinedEmail /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCustomerDefinedEmail()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous786 > orderby, System.Collections.Generic.IEnumerable < Anonymous787 > select, System.Collections.Generic.IEnumerable < Anonymous788 > expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCustomerDefinedEmail()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultTemplates /// /// response body for function DefaultTemplates /// A server side error occurred. public virtual System.Threading.Tasks.Task DefaultTemplates(Company= '')Async(string company) { return DefaultTemplates(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultTemplates /// /// response body for function DefaultTemplates /// A server side error occurred. public virtual IdentityPayInfoStructure DefaultTemplates(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await DefaultTemplates(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultTemplates /// /// response body for function DefaultTemplates /// A server side error occurred. public virtual async System.Threading.Tasks.Task DefaultTemplates(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/DefaultTemplates(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetNames /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetNames /// A server side error occurred. public virtual System.Threading.Tasks.Task GetNames()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous789 > orderby, System.Collections.Generic.IEnumerable < Anonymous790 > select, System.Collections.Generic.IEnumerable < Anonymous791 > expand) { return GetNames()Async(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None); } /// /// Invoke function GetNames /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetNames /// A server side error occurred. public virtual Response161 GetNames()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand) { return System.Threading.Tasks.Task.Run(async () => await GetNames()Async(top, skip, count, filter, orderby, select, expand, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetNames /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetNames /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetNames()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous789 > orderby, System.Collections.Generic.IEnumerable < Anonymous790 > select, System.Collections.Generic.IEnumerable < Anonymous791 > expand, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetNames()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function OtherPayeeIdentityInfo /// /// response body for function OtherPayeeIdentityInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task OtherPayeeIdentityInfo(Company= '', OtherPayeeIdentity= '')Async(string company, string otherPayeeIdentity) { return OtherPayeeIdentityInfo(Company = '', OtherPayeeIdentity = '')Async(company, otherPayeeIdentity, System.Threading.CancellationToken.None); } /// /// Invoke function OtherPayeeIdentityInfo /// /// response body for function OtherPayeeIdentityInfo /// A server side error occurred. public virtual OtherPayeeStructure OtherPayeeIdentityInfo(Company= '', OtherPayeeIdentity= '')(string company, string otherPayeeIdentity) { return System.Threading.Tasks.Task.Run(async () => await OtherPayeeIdentityInfo(Company = '', OtherPayeeIdentity = '')Async(company, otherPayeeIdentity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function OtherPayeeIdentityInfo /// /// response body for function OtherPayeeIdentityInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task OtherPayeeIdentityInfo(Company= '', OtherPayeeIdentity= '')Async(string company, string otherPayeeIdentity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (otherPayeeIdentity == null) throw new System.ArgumentNullException("otherPayeeIdentity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OtherPayeeIdentityInfo(Company='{Company}',OtherPayeeIdentity='{OtherPayeeIdentity}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{OtherPayeeIdentity}", System.Uri.EscapeDataString(ConvertToString(otherPayeeIdentity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function RoundAccCurrencyAmount /// /// response body for function RoundAccCurrencyAmount /// A server side error occurred. public virtual System.Threading.Tasks.Task RoundAccCurrencyAmount(Company= '', Amount=)Async(string company, double amount) { return RoundAccCurrencyAmount(Company = '', Amount =)Async(company, amount, System.Threading.CancellationToken.None); } /// /// Invoke function RoundAccCurrencyAmount /// /// response body for function RoundAccCurrencyAmount /// A server side error occurred. public virtual RoundAccCurrencyAmountFunctionImportResponse RoundAccCurrencyAmount(Company= '', Amount=)(string company, double amount) { return System.Threading.Tasks.Task.Run(async () => await RoundAccCurrencyAmount(Company = '', Amount =)Async(company, amount, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function RoundAccCurrencyAmount /// /// response body for function RoundAccCurrencyAmount /// A server side error occurred. public virtual async System.Threading.Tasks.Task RoundAccCurrencyAmount(Company= '', Amount=)Async(string company, double amount, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (amount == null) throw new System.ArgumentNullException("amount"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/RoundAccCurrencyAmount(Company='{Company}',Amount={Amount})"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Amount}", System.Uri.EscapeDataString(ConvertToString(amount, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function RoundCurrencyAmount /// /// response body for function RoundCurrencyAmount /// A server side error occurred. public virtual System.Threading.Tasks.Task RoundCurrencyAmount(Company= '', CurrencyCode= '', Amount=)Async(string company, string currencyCode, double amount) { return RoundCurrencyAmount(Company = '', CurrencyCode = '', Amount =)Async(company, currencyCode, amount, System.Threading.CancellationToken.None); } /// /// Invoke function RoundCurrencyAmount /// /// response body for function RoundCurrencyAmount /// A server side error occurred. public virtual RoundCurrencyAmountFunctionImportResponse RoundCurrencyAmount(Company= '', CurrencyCode= '', Amount=)(string company, string currencyCode, double amount) { return System.Threading.Tasks.Task.Run(async () => await RoundCurrencyAmount(Company = '', CurrencyCode = '', Amount =)Async(company, currencyCode, amount, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function RoundCurrencyAmount /// /// response body for function RoundCurrencyAmount /// A server side error occurred. public virtual async System.Threading.Tasks.Task RoundCurrencyAmount(Company= '', CurrencyCode= '', Amount=)Async(string company, string currencyCode, double amount, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (currencyCode == null) throw new System.ArgumentNullException("currencyCode"); if (amount == null) throw new System.ArgumentNullException("amount"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/RoundCurrencyAmount(Company='{Company}',CurrencyCode='{CurrencyCode}',Amount={Amount})"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CurrencyCode}", System.Uri.EscapeDataString(ConvertToString(currencyCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Amount}", System.Uri.EscapeDataString(ConvertToString(amount, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function MessageTypeForCreditAnalystCode /// /// response body for function MessageTypeForCreditAnalystCode /// A server side error occurred. public virtual System.Threading.Tasks.Task MessageTypeForCreditAnalystCode(Company= '', CreditAnalystCode= '')Async(string company, string creditAnalystCode) { return MessageTypeForCreditAnalystCode(Company = '', CreditAnalystCode = '')Async(company, creditAnalystCode, System.Threading.CancellationToken.None); } /// /// Invoke function MessageTypeForCreditAnalystCode /// /// response body for function MessageTypeForCreditAnalystCode /// A server side error occurred. public virtual MessageTypeForCreditAnalystCodeFunctionImportResponse MessageTypeForCreditAnalystCode(Company= '', CreditAnalystCode= '')(string company, string creditAnalystCode) { return System.Threading.Tasks.Task.Run(async () => await MessageTypeForCreditAnalystCode(Company = '', CreditAnalystCode = '')Async(company, creditAnalystCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function MessageTypeForCreditAnalystCode /// /// response body for function MessageTypeForCreditAnalystCode /// A server side error occurred. public virtual async System.Threading.Tasks.Task MessageTypeForCreditAnalystCode(Company= '', CreditAnalystCode= '')Async(string company, string creditAnalystCode, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (creditAnalystCode == null) throw new System.ArgumentNullException("creditAnalystCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MessageTypeForCreditAnalystCode(Company='{Company}',CreditAnalystCode='{CreditAnalystCode}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CreditAnalystCode}", System.Uri.EscapeDataString(ConvertToString(creditAnalystCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetParentIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetParentIdentity /// A server side error occurred. public virtual System.Threading.Tasks.Task GetParentIdentity(Company= '', Identity= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous792 > orderby, System.Collections.Generic.IEnumerable < Anonymous793 > select, string company, string identity) { return GetParentIdentity(Company = '', Identity = '')Async(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None); } /// /// Invoke function GetParentIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetParentIdentity /// A server side error occurred. public virtual Response162 GetParentIdentity(Company= '', Identity= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await GetParentIdentity(Company = '', Identity = '')Async(top, skip, count, filter, orderby, select, company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetParentIdentity /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetParentIdentity /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetParentIdentity(Company= '', Identity= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous792 > orderby, System.Collections.Generic.IEnumerable < Anonymous793 > select, string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetParentIdentity(Company='{Company}',Identity='{Identity}')?"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetChildRelationshipCount /// /// response body for function GetChildRelationshipCount /// A server side error occurred. public virtual System.Threading.Tasks.Task GetChildRelationshipCount(Company= '', Identity= '')Async(string company, string identity) { return GetChildRelationshipCount(Company = '', Identity = '')Async(company, identity, System.Threading.CancellationToken.None); } /// /// Invoke function GetChildRelationshipCount /// /// response body for function GetChildRelationshipCount /// A server side error occurred. public virtual GetChildRelationshipCountFunctionImportResponse GetChildRelationshipCount(Company= '', Identity= '')(string company, string identity) { return System.Threading.Tasks.Task.Run(async () => await GetChildRelationshipCount(Company = '', Identity = '')Async(company, identity, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetChildRelationshipCount /// /// response body for function GetChildRelationshipCount /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetChildRelationshipCount(Company= '', Identity= '')Async(string company, string identity, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); if (identity == null) throw new System.ArgumentNullException("identity"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetChildRelationshipCount(Company='{Company}',Identity='{Identity}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Identity}", System.Uri.EscapeDataString(ConvertToString(identity, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetDefaultRepRole /// /// response body for function GetDefaultRepRole /// A server side error occurred. public virtual System.Threading.Tasks.Task GetDefaultRepRole(RepId= '')Async(string repId) { return GetDefaultRepRole(RepId = '')Async(repId, System.Threading.CancellationToken.None); } /// /// Invoke function GetDefaultRepRole /// /// response body for function GetDefaultRepRole /// A server side error occurred. public virtual GetDefaultRepRoleFunctionImportResponse GetDefaultRepRole(RepId= '')(string repId) { return System.Threading.Tasks.Task.Run(async () => await GetDefaultRepRole(RepId = '')Async(repId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetDefaultRepRole /// /// response body for function GetDefaultRepRole /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetDefaultRepRole(RepId= '')Async(string repId, System.Threading.CancellationToken cancellationToken) { if (repId == null) throw new System.ArgumentNullException("repId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetDefaultRepRole(RepId='{RepId}')"); urlBuilder_.Replace("{RepId}", System.Uri.EscapeDataString(ConvertToString(repId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCustGrpDescription /// /// response body for function GetCustGrpDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCustGrpDescription(CustGrp= '')Async(string custGrp) { return GetCustGrpDescription(CustGrp = '')Async(custGrp, System.Threading.CancellationToken.None); } /// /// Invoke function GetCustGrpDescription /// /// response body for function GetCustGrpDescription /// A server side error occurred. public virtual GetCustGrpDescriptionFunctionImportResponse GetCustGrpDescription(CustGrp= '')(string custGrp) { return System.Threading.Tasks.Task.Run(async () => await GetCustGrpDescription(CustGrp = '')Async(custGrp, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCustGrpDescription /// /// response body for function GetCustGrpDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCustGrpDescription(CustGrp= '')Async(string custGrp, System.Threading.CancellationToken cancellationToken) { if (custGrp == null) throw new System.ArgumentNullException("custGrp"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCustGrpDescription(CustGrp='{CustGrp}')"); urlBuilder_.Replace("{CustGrp}", System.Uri.EscapeDataString(ConvertToString(custGrp, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCustPriceGroupDescription /// /// response body for function GetCustPriceGroupDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCustPriceGroupDescription(CustPriceGroupId= '')Async(string custPriceGroupId) { return GetCustPriceGroupDescription(CustPriceGroupId = '')Async(custPriceGroupId, System.Threading.CancellationToken.None); } /// /// Invoke function GetCustPriceGroupDescription /// /// response body for function GetCustPriceGroupDescription /// A server side error occurred. public virtual GetCustPriceGroupDescriptionFunctionImportResponse GetCustPriceGroupDescription(CustPriceGroupId= '')(string custPriceGroupId) { return System.Threading.Tasks.Task.Run(async () => await GetCustPriceGroupDescription(CustPriceGroupId = '')Async(custPriceGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCustPriceGroupDescription /// /// response body for function GetCustPriceGroupDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCustPriceGroupDescription(CustPriceGroupId= '')Async(string custPriceGroupId, System.Threading.CancellationToken cancellationToken) { if (custPriceGroupId == null) throw new System.ArgumentNullException("custPriceGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCustPriceGroupDescription(CustPriceGroupId='{CustPriceGroupId}')"); urlBuilder_.Replace("{CustPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(custPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetMarketCodeDescription /// /// response body for function GetMarketCodeDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetMarketCodeDescription(MarketCode= '')Async(string marketCode) { return GetMarketCodeDescription(MarketCode = '')Async(marketCode, System.Threading.CancellationToken.None); } /// /// Invoke function GetMarketCodeDescription /// /// response body for function GetMarketCodeDescription /// A server side error occurred. public virtual GetMarketCodeDescriptionFunctionImportResponse GetMarketCodeDescription(MarketCode= '')(string marketCode) { return System.Threading.Tasks.Task.Run(async () => await GetMarketCodeDescription(MarketCode = '')Async(marketCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetMarketCodeDescription /// /// response body for function GetMarketCodeDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetMarketCodeDescription(MarketCode= '')Async(string marketCode, System.Threading.CancellationToken cancellationToken) { if (marketCode == null) throw new System.ArgumentNullException("marketCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetMarketCodeDescription(MarketCode='{MarketCode}')"); urlBuilder_.Replace("{MarketCode}", System.Uri.EscapeDataString(ConvertToString(marketCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetDiscountTypeDescription /// /// response body for function GetDiscountTypeDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetDiscountTypeDescription(DiscountType= '')Async(string discountType) { return GetDiscountTypeDescription(DiscountType = '')Async(discountType, System.Threading.CancellationToken.None); } /// /// Invoke function GetDiscountTypeDescription /// /// response body for function GetDiscountTypeDescription /// A server side error occurred. public virtual GetDiscountTypeDescriptionFunctionImportResponse GetDiscountTypeDescription(DiscountType= '')(string discountType) { return System.Threading.Tasks.Task.Run(async () => await GetDiscountTypeDescription(DiscountType = '')Async(discountType, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetDiscountTypeDescription /// /// response body for function GetDiscountTypeDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetDiscountTypeDescription(DiscountType= '')Async(string discountType, System.Threading.CancellationToken cancellationToken) { if (discountType == null) throw new System.ArgumentNullException("discountType"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetDiscountTypeDescription(DiscountType='{DiscountType}')"); urlBuilder_.Replace("{DiscountType}", System.Uri.EscapeDataString(ConvertToString(discountType, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCreditControlGroupDescription /// /// response body for function GetCreditControlGroupDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCreditControlGroupDescription(CreditControlGroupId= '')Async(string creditControlGroupId) { return GetCreditControlGroupDescription(CreditControlGroupId = '')Async(creditControlGroupId, System.Threading.CancellationToken.None); } /// /// Invoke function GetCreditControlGroupDescription /// /// response body for function GetCreditControlGroupDescription /// A server side error occurred. public virtual GetCreditControlGroupDescriptionFunctionImportResponse GetCreditControlGroupDescription(CreditControlGroupId= '')(string creditControlGroupId) { return System.Threading.Tasks.Task.Run(async () => await GetCreditControlGroupDescription(CreditControlGroupId = '')Async(creditControlGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCreditControlGroupDescription /// /// response body for function GetCreditControlGroupDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCreditControlGroupDescription(CreditControlGroupId= '')Async(string creditControlGroupId, System.Threading.CancellationToken cancellationToken) { if (creditControlGroupId == null) throw new System.ArgumentNullException("creditControlGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCreditControlGroupDescription(CreditControlGroupId='{CreditControlGroupId}')"); urlBuilder_.Replace("{CreditControlGroupId}", System.Uri.EscapeDataString(ConvertToString(creditControlGroupId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function CheckCommReceiverExist /// /// response body for function CheckCommReceiverExist /// A server side error occurred. public virtual System.Threading.Tasks.Task CheckCommReceiverExist(SalesmanCode= '', CustomerId= '')Async(string salesmanCode, string customerId) { return CheckCommReceiverExist(SalesmanCode = '', CustomerId = '')Async(salesmanCode, customerId, System.Threading.CancellationToken.None); } /// /// Invoke function CheckCommReceiverExist /// /// response body for function CheckCommReceiverExist /// A server side error occurred. public virtual CheckCommReceiverExistFunctionImportResponse CheckCommReceiverExist(SalesmanCode= '', CustomerId= '')(string salesmanCode, string customerId) { return System.Threading.Tasks.Task.Run(async () => await CheckCommReceiverExist(SalesmanCode = '', CustomerId = '')Async(salesmanCode, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function CheckCommReceiverExist /// /// response body for function CheckCommReceiverExist /// A server side error occurred. public virtual async System.Threading.Tasks.Task CheckCommReceiverExist(SalesmanCode= '', CustomerId= '')Async(string salesmanCode, string customerId, System.Threading.CancellationToken cancellationToken) { if (salesmanCode == null) throw new System.ArgumentNullException("salesmanCode"); if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CheckCommReceiverExist(SalesmanCode='{SalesmanCode}',CustomerId='{CustomerId}')"); urlBuilder_.Replace("{SalesmanCode}", System.Uri.EscapeDataString(ConvertToString(salesmanCode, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetUsePriceInclTaxOrd /// /// response body for function GetUsePriceInclTaxOrd /// A server side error occurred. public virtual System.Threading.Tasks.Task GetUsePriceInclTaxOrd(Company= '')Async(string company) { return GetUsePriceInclTaxOrd(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function GetUsePriceInclTaxOrd /// /// response body for function GetUsePriceInclTaxOrd /// A server side error occurred. public virtual GetUsePriceInclTaxOrdFunctionImportResponse GetUsePriceInclTaxOrd(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await GetUsePriceInclTaxOrd(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetUsePriceInclTaxOrd /// /// response body for function GetUsePriceInclTaxOrd /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetUsePriceInclTaxOrd(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetUsePriceInclTaxOrd(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetExternalTaxCalMethod /// /// response body for function GetExternalTaxCalMethod /// A server side error occurred. public virtual System.Threading.Tasks.Task GetExternalTaxCalMethod(Company= '')Async(string company) { return GetExternalTaxCalMethod(Company = '')Async(company, System.Threading.CancellationToken.None); } /// /// Invoke function GetExternalTaxCalMethod /// /// response body for function GetExternalTaxCalMethod /// A server side error occurred. public virtual GetExternalTaxCalMethodFunctionImportResponse GetExternalTaxCalMethod(Company= '')(string company) { return System.Threading.Tasks.Task.Run(async () => await GetExternalTaxCalMethod(Company = '')Async(company, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetExternalTaxCalMethod /// /// response body for function GetExternalTaxCalMethod /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetExternalTaxCalMethod(Company= '')Async(string company, System.Threading.CancellationToken cancellationToken) { if (company == null) throw new System.ArgumentNullException("company"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetExternalTaxCalMethod(Company='{Company}')"); urlBuilder_.Replace("{Company}", System.Uri.EscapeDataString(ConvertToString(company, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetReference /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetReference /// A server side error occurred. public virtual System.Threading.Tasks.Task GetReference()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous794 > orderby, System.Collections.Generic.IEnumerable < Anonymous795 > select) { return GetReference()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Invoke function GetReference /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetReference /// A server side error occurred. public virtual Response163 GetReference()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await GetReference()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetReference /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetReference /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetReference()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous794 > orderby, System.Collections.Generic.IEnumerable < Anonymous795 > select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetReference()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetDescription /// /// response body for function GetDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task GetDescription(SalesPriceGroupId= '')Async(string salesPriceGroupId) { return GetDescription(SalesPriceGroupId = '')Async(salesPriceGroupId, System.Threading.CancellationToken.None); } /// /// Invoke function GetDescription /// /// response body for function GetDescription /// A server side error occurred. public virtual GetDescriptionFunctionImportResponse GetDescription(SalesPriceGroupId= '')(string salesPriceGroupId) { return System.Threading.Tasks.Task.Run(async () => await GetDescription(SalesPriceGroupId = '')Async(salesPriceGroupId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetDescription /// /// response body for function GetDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetDescription(SalesPriceGroupId= '')Async(string salesPriceGroupId, System.Threading.CancellationToken cancellationToken) { if (salesPriceGroupId == null) throw new System.ArgumentNullException("salesPriceGroupId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetDescription(SalesPriceGroupId='{SalesPriceGroupId}')"); urlBuilder_.Replace("{SalesPriceGroupId}", System.Uri.EscapeDataString(ConvertToString(salesPriceGroupId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function IsPriceGroupTypePartBased /// /// response body for function IsPriceGroupTypePartBased /// A server side error occurred. public virtual System.Threading.Tasks.Task IsPriceGroupTypePartBased(FullSelection= '')Async(string fullSelection) { return IsPriceGroupTypePartBased(FullSelection = '')Async(fullSelection, System.Threading.CancellationToken.None); } /// /// Invoke function IsPriceGroupTypePartBased /// /// response body for function IsPriceGroupTypePartBased /// A server side error occurred. public virtual IsPriceGroupTypePartBasedFunctionImportResponse IsPriceGroupTypePartBased(FullSelection= '')(string fullSelection) { return System.Threading.Tasks.Task.Run(async () => await IsPriceGroupTypePartBased(FullSelection = '')Async(fullSelection, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function IsPriceGroupTypePartBased /// /// response body for function IsPriceGroupTypePartBased /// A server side error occurred. public virtual async System.Threading.Tasks.Task IsPriceGroupTypePartBased(FullSelection= '')Async(string fullSelection, System.Threading.CancellationToken cancellationToken) { if (fullSelection == null) throw new System.ArgumentNullException("fullSelection"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/IsPriceGroupTypePartBased(FullSelection='{FullSelection}')"); urlBuilder_.Replace("{FullSelection}", System.Uri.EscapeDataString(ConvertToString(fullSelection, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetChargeDefaults /// /// response body for function GetChargeDefaults /// A server side error occurred. public virtual System.Threading.Tasks.Task GetChargeDefaults(ChargeType= '', CustomerId= '', Contract= '')Async(string chargeType, string customerId, string contract) { return GetChargeDefaults(ChargeType = '', CustomerId = '', Contract = '')Async(chargeType, customerId, contract, System.Threading.CancellationToken.None); } /// /// Invoke function GetChargeDefaults /// /// response body for function GetChargeDefaults /// A server side error occurred. public virtual ChargeDefaultsSturucture GetChargeDefaults(ChargeType= '', CustomerId= '', Contract= '')(string chargeType, string customerId, string contract) { return System.Threading.Tasks.Task.Run(async () => await GetChargeDefaults(ChargeType = '', CustomerId = '', Contract = '')Async(chargeType, customerId, contract, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetChargeDefaults /// /// response body for function GetChargeDefaults /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetChargeDefaults(ChargeType= '', CustomerId= '', Contract= '')Async(string chargeType, string customerId, string contract, System.Threading.CancellationToken cancellationToken) { if (chargeType == null) throw new System.ArgumentNullException("chargeType"); if (customerId == null) throw new System.ArgumentNullException("customerId"); if (contract == null) throw new System.ArgumentNullException("contract"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetChargeDefaults(ChargeType='{ChargeType}',CustomerId='{CustomerId}',Contract='{Contract}')"); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function CalculateChargeAmount /// /// response body for function CalculateChargeAmount /// A server side error occurred. public virtual System.Threading.Tasks.Task CalculateChargeAmount(ChargeType= '', Contract= '', Amount=, InclTax=)Async(string chargeType, string contract, double amount, bool inclTax) { return CalculateChargeAmount(ChargeType = '', Contract = '', Amount =, InclTax =)Async(chargeType, contract, amount, inclTax, System.Threading.CancellationToken.None); } /// /// Invoke function CalculateChargeAmount /// /// response body for function CalculateChargeAmount /// A server side error occurred. public virtual CalculateChargeAmountFunctionImportResponse CalculateChargeAmount(ChargeType= '', Contract= '', Amount=, InclTax=)(string chargeType, string contract, double amount, bool inclTax) { return System.Threading.Tasks.Task.Run(async () => await CalculateChargeAmount(ChargeType = '', Contract = '', Amount =, InclTax =)Async(chargeType, contract, amount, inclTax, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function CalculateChargeAmount /// /// response body for function CalculateChargeAmount /// A server side error occurred. public virtual async System.Threading.Tasks.Task CalculateChargeAmount(ChargeType= '', Contract= '', Amount=, InclTax=)Async(string chargeType, string contract, double amount, bool inclTax, System.Threading.CancellationToken cancellationToken) { if (chargeType == null) throw new System.ArgumentNullException("chargeType"); if (contract == null) throw new System.ArgumentNullException("contract"); if (amount == null) throw new System.ArgumentNullException("amount"); if (inclTax == null) throw new System.ArgumentNullException("inclTax"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CalculateChargeAmount(ChargeType='{ChargeType}',Contract='{Contract}',Amount={Amount},InclTax={InclTax})"); urlBuilder_.Replace("{ChargeType}", System.Uri.EscapeDataString(ConvertToString(chargeType, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Contract}", System.Uri.EscapeDataString(ConvertToString(contract, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Amount}", System.Uri.EscapeDataString(ConvertToString(amount, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{InclTax}", System.Uri.EscapeDataString(ConvertToString(inclTax, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetOtherChargeTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetOtherChargeTypes /// A server side error occurred. public virtual System.Threading.Tasks.Task GetOtherChargeTypes()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous796 > orderby, System.Collections.Generic.IEnumerable < Anonymous797 > select) { return GetOtherChargeTypes()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Invoke function GetOtherChargeTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetOtherChargeTypes /// A server side error occurred. public virtual Response164 GetOtherChargeTypes()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await GetOtherChargeTypes()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetOtherChargeTypes /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function GetOtherChargeTypes /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetOtherChargeTypes()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous796 > orderby, System.Collections.Generic.IEnumerable < Anonymous797 > select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetOtherChargeTypes()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetName /// /// response body for function GetName /// A server side error occurred. public virtual System.Threading.Tasks.Task GetName(CustomerNo= '')Async(string customerNo) { return GetName(CustomerNo = '')Async(customerNo, System.Threading.CancellationToken.None); } /// /// Invoke function GetName /// /// response body for function GetName /// A server side error occurred. public virtual GetNameFunctionImportResponse GetName(CustomerNo= '')(string customerNo) { return System.Threading.Tasks.Task.Run(async () => await GetName(CustomerNo = '')Async(customerNo, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetName /// /// response body for function GetName /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetName(CustomerNo= '')Async(string customerNo, System.Threading.CancellationToken cancellationToken) { if (customerNo == null) throw new System.ArgumentNullException("customerNo"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetName(CustomerNo='{CustomerNo}')"); urlBuilder_.Replace("{CustomerNo}", System.Uri.EscapeDataString(ConvertToString(customerNo, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetDescriptions /// /// response body for function GetDescriptions /// A server side error occurred. public virtual System.Threading.Tasks.Task GetDescriptions(AssortmentId= '')Async(string assortmentId) { return GetDescriptions(AssortmentId = '')Async(assortmentId, System.Threading.CancellationToken.None); } /// /// Invoke function GetDescriptions /// /// response body for function GetDescriptions /// A server side error occurred. public virtual GetDescriptionsFunctionImportResponse GetDescriptions(AssortmentId= '')(string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await GetDescriptions(AssortmentId = '')Async(assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetDescriptions /// /// response body for function GetDescriptions /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetDescriptions(AssortmentId= '')Async(string assortmentId, System.Threading.CancellationToken cancellationToken) { if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetDescriptions(AssortmentId='{AssortmentId}')"); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetDescription3 /// /// response body for function GetDescription3 /// A server side error occurred. public virtual System.Threading.Tasks.Task GetDescription3(ClassificationStandard= '')Async(string classificationStandard) { return GetDescription3(ClassificationStandard = '')Async(classificationStandard, System.Threading.CancellationToken.None); } /// /// Invoke function GetDescription3 /// /// response body for function GetDescription3 /// A server side error occurred. public virtual GetDescription3FunctionImportResponse GetDescription3(ClassificationStandard= '')(string classificationStandard) { return System.Threading.Tasks.Task.Run(async () => await GetDescription3(ClassificationStandard = '')Async(classificationStandard, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetDescription3 /// /// response body for function GetDescription3 /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetDescription3(ClassificationStandard= '')Async(string classificationStandard, System.Threading.CancellationToken cancellationToken) { if (classificationStandard == null) throw new System.ArgumentNullException("classificationStandard"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetDescription3(ClassificationStandard='{ClassificationStandard}')"); urlBuilder_.Replace("{ClassificationStandard}", System.Uri.EscapeDataString(ConvertToString(classificationStandard, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function ClassificationStandardCheckNull /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ClassificationStandardCheckNull /// A server side error occurred. public virtual System.Threading.Tasks.Task ClassificationStandardCheckNull()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous798 > orderby, System.Collections.Generic.IEnumerable < Anonymous799 > select) { return ClassificationStandardCheckNull()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None); } /// /// Invoke function ClassificationStandardCheckNull /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ClassificationStandardCheckNull /// A server side error occurred. public virtual Response165 ClassificationStandardCheckNull()(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select) { return System.Threading.Tasks.Task.Run(async () => await ClassificationStandardCheckNull()Async(top, skip, count, filter, orderby, select, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function ClassificationStandardCheckNull /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function ClassificationStandardCheckNull /// A server side error occurred. public virtual async System.Threading.Tasks.Task ClassificationStandardCheckNull()Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous798 > orderby, System.Collections.Generic.IEnumerable < Anonymous799 > select, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/ClassificationStandardCheckNull()?"); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function GetCustomerNoLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerNoLov /// A server side error occurred. public virtual System.Threading.Tasks.Task GetCustomerNoLov(AssortmentId= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous800 > orderby, System.Collections.Generic.IEnumerable < Anonymous801 > select, System.Collections.Generic.IEnumerable < Anonymous802 > expand, string assortmentId) { return GetCustomerNoLov(AssortmentId = '')Async(top, skip, count, filter, orderby, select, expand, assortmentId, System.Threading.CancellationToken.None); } /// /// Invoke function GetCustomerNoLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerNoLov /// A server side error occurred. public virtual Response166 GetCustomerNoLov(AssortmentId= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, string assortmentId) { return System.Threading.Tasks.Task.Run(async () => await GetCustomerNoLov(AssortmentId = '')Async(top, skip, count, filter, orderby, select, expand, assortmentId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function GetCustomerNoLov /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function GetCustomerNoLov /// A server side error occurred. public virtual async System.Threading.Tasks.Task GetCustomerNoLov(AssortmentId= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous800 > orderby, System.Collections.Generic.IEnumerable < Anonymous801 > select, System.Collections.Generic.IEnumerable < Anonymous802 > expand, string assortmentId, System.Threading.CancellationToken cancellationToken) { if (assortmentId == null) throw new System.ArgumentNullException("assortmentId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/GetCustomerNoLov(AssortmentId='{AssortmentId}')?"); urlBuilder_.Replace("{AssortmentId}", System.Uri.EscapeDataString(ConvertToString(assortmentId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function SubjectKeyRef /// /// response body for function SubjectKeyRef /// A server side error occurred. public virtual System.Threading.Tasks.Task SubjectKeyRef(DataSubjectDb= '', Key1= '', Key2= '')Async(string dataSubjectDb, string key1, string key2) { return SubjectKeyRef(DataSubjectDb = '', Key1 = '', Key2 = '')Async(dataSubjectDb, key1, key2, System.Threading.CancellationToken.None); } /// /// Invoke function SubjectKeyRef /// /// response body for function SubjectKeyRef /// A server side error occurred. public virtual SubjectKeyRefFunctionImportResponse SubjectKeyRef(DataSubjectDb= '', Key1= '', Key2= '')(string dataSubjectDb, string key1, string key2) { return System.Threading.Tasks.Task.Run(async () => await SubjectKeyRef(DataSubjectDb = '', Key1 = '', Key2 = '')Async(dataSubjectDb, key1, key2, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function SubjectKeyRef /// /// response body for function SubjectKeyRef /// A server side error occurred. public virtual async System.Threading.Tasks.Task SubjectKeyRef(DataSubjectDb= '', Key1= '', Key2= '')Async(string dataSubjectDb, string key1, string key2, System.Threading.CancellationToken cancellationToken) { if (dataSubjectDb == null) throw new System.ArgumentNullException("dataSubjectDb"); if (key1 == null) throw new System.ArgumentNullException("key1"); if (key2 == null) throw new System.ArgumentNullException("key2"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SubjectKeyRef(DataSubjectDb='{DataSubjectDb}',Key1='{Key1}',Key2='{Key2}')"); urlBuilder_.Replace("{DataSubjectDb}", System.Uri.EscapeDataString(ConvertToString(dataSubjectDb, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Key1}", System.Uri.EscapeDataString(ConvertToString(key1, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{Key2}", System.Uri.EscapeDataString(ConvertToString(key2, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultContactInfo /// /// response body for function DefaultContactInfo /// A server side error occurred. public virtual System.Threading.Tasks.Task DefaultContactInfo(PersonId= '', ContactAddress= '')Async(string personId, string contactAddress) { return DefaultContactInfo(PersonId = '', ContactAddress = '')Async(personId, contactAddress, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultContactInfo /// /// response body for function DefaultContactInfo /// A server side error occurred. public virtual DefaultContactInfoStructure DefaultContactInfo(PersonId= '', ContactAddress= '')(string personId, string contactAddress) { return System.Threading.Tasks.Task.Run(async () => await DefaultContactInfo(PersonId = '', ContactAddress = '')Async(personId, contactAddress, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultContactInfo /// /// response body for function DefaultContactInfo /// A server side error occurred. public virtual async System.Threading.Tasks.Task DefaultContactInfo(PersonId= '', ContactAddress= '')Async(string personId, string contactAddress, System.Threading.CancellationToken cancellationToken) { if (personId == null) throw new System.ArgumentNullException("personId"); if (contactAddress == null) throw new System.ArgumentNullException("contactAddress"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/DefaultContactInfo(PersonId='{PersonId}',ContactAddress='{ContactAddress}')"); urlBuilder_.Replace("{PersonId}", System.Uri.EscapeDataString(ConvertToString(personId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{ContactAddress}", System.Uri.EscapeDataString(ConvertToString(contactAddress, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function EndCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function EndCustomers /// A server side error occurred. public virtual System.Threading.Tasks.Task EndCustomers(CustomerId= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous803 > orderby, System.Collections.Generic.IEnumerable < Anonymous804 > select, System.Collections.Generic.IEnumerable < Anonymous805 > expand, string customerId) { return EndCustomers(CustomerId = '')Async(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None); } /// /// Invoke function EndCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function EndCustomers /// A server side error occurred. public virtual Response167 EndCustomers(CustomerId= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, System.Collections.Generic.IEnumerable expand, string customerId) { return System.Threading.Tasks.Task.Run(async () => await EndCustomers(CustomerId = '')Async(top, skip, count, filter, orderby, select, expand, customerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function EndCustomers /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// Expand related entities, see [OData Expand](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_6) /// response body for function EndCustomers /// A server side error occurred. public virtual async System.Threading.Tasks.Task EndCustomers(CustomerId= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous803 > orderby, System.Collections.Generic.IEnumerable < Anonymous804 > select, System.Collections.Generic.IEnumerable < Anonymous805 > expand, string customerId, System.Threading.CancellationToken cancellationToken) { if (customerId == null) throw new System.ArgumentNullException("customerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/EndCustomers(CustomerId='{CustomerId}')?"); urlBuilder_.Replace("{CustomerId}", System.Uri.EscapeDataString(ConvertToString(customerId, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (expand != null) { foreach (var item_ in expand) { urlBuilder_.Append(System.Uri.EscapeDataString("$expand") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function DefaultEndCustAddrId /// /// response body for function DefaultEndCustAddrId /// A server side error occurred. public virtual System.Threading.Tasks.Task DefaultEndCustAddrId(EndCustomerId= '')Async(string endCustomerId) { return DefaultEndCustAddrId(EndCustomerId = '')Async(endCustomerId, System.Threading.CancellationToken.None); } /// /// Invoke function DefaultEndCustAddrId /// /// response body for function DefaultEndCustAddrId /// A server side error occurred. public virtual DefaultEndCustAddrIdFunctionImportResponse DefaultEndCustAddrId(EndCustomerId= '')(string endCustomerId) { return System.Threading.Tasks.Task.Run(async () => await DefaultEndCustAddrId(EndCustomerId = '')Async(endCustomerId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function DefaultEndCustAddrId /// /// response body for function DefaultEndCustAddrId /// A server side error occurred. public virtual async System.Threading.Tasks.Task DefaultEndCustAddrId(EndCustomerId= '')Async(string endCustomerId, System.Threading.CancellationToken cancellationToken) { if (endCustomerId == null) throw new System.ArgumentNullException("endCustomerId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/DefaultEndCustAddrId(EndCustomerId='{EndCustomerId}')"); urlBuilder_.Replace("{EndCustomerId}", System.Uri.EscapeDataString(ConvertToString(endCustomerId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function EndCustAddressDetails /// /// response body for function EndCustAddressDetails /// A server side error occurred. public virtual System.Threading.Tasks.Task EndCustAddressDetails(EndCustomerId= '', EndCustAddrId= '')Async(string endCustomerId, string endCustAddrId) { return EndCustAddressDetails(EndCustomerId = '', EndCustAddrId = '')Async(endCustomerId, endCustAddrId, System.Threading.CancellationToken.None); } /// /// Invoke function EndCustAddressDetails /// /// response body for function EndCustAddressDetails /// A server side error occurred. public virtual AdressDetailsStructure EndCustAddressDetails(EndCustomerId= '', EndCustAddrId= '')(string endCustomerId, string endCustAddrId) { return System.Threading.Tasks.Task.Run(async () => await EndCustAddressDetails(EndCustomerId = '', EndCustAddrId = '')Async(endCustomerId, endCustAddrId, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function EndCustAddressDetails /// /// response body for function EndCustAddressDetails /// A server side error occurred. public virtual async System.Threading.Tasks.Task EndCustAddressDetails(EndCustomerId= '', EndCustAddrId= '')Async(string endCustomerId, string endCustAddrId, System.Threading.CancellationToken cancellationToken) { if (endCustomerId == null) throw new System.ArgumentNullException("endCustomerId"); if (endCustAddrId == null) throw new System.ArgumentNullException("endCustAddrId"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/EndCustAddressDetails(EndCustomerId='{EndCustomerId}',EndCustAddrId='{EndCustAddrId}')"); urlBuilder_.Replace("{EndCustomerId}", System.Uri.EscapeDataString(ConvertToString(endCustomerId, System.Globalization.CultureInfo.InvariantCulture))); urlBuilder_.Replace("{EndCustAddrId}", System.Uri.EscapeDataString(ConvertToString(endCustAddrId, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function FetchCountryDescription /// /// response body for function FetchCountryDescription /// A server side error occurred. public virtual System.Threading.Tasks.Task FetchCountryDescription(CountryCode= '')Async(CountryCode3 countryCode) { return FetchCountryDescription(CountryCode = '')Async(countryCode, System.Threading.CancellationToken.None); } /// /// Invoke function FetchCountryDescription /// /// response body for function FetchCountryDescription /// A server side error occurred. public virtual FetchCountryDescriptionFunctionImportResponse FetchCountryDescription(CountryCode= '')(CountryCode3 countryCode) { return System.Threading.Tasks.Task.Run(async () => await FetchCountryDescription(CountryCode = '')Async(countryCode, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function FetchCountryDescription /// /// response body for function FetchCountryDescription /// A server side error occurred. public virtual async System.Threading.Tasks.Task FetchCountryDescription(CountryCode= '')Async(CountryCode3 countryCode, System.Threading.CancellationToken cancellationToken) { if (countryCode == null) throw new System.ArgumentNullException("countryCode"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/FetchCountryDescription(CountryCode='{CountryCode}')"); urlBuilder_.Replace("{CountryCode}", System.Uri.EscapeDataString(ConvertToString(countryCode, System.Globalization.CultureInfo.InvariantCulture))); var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function CorporateFormLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function CorporateFormLovWhere /// A server side error occurred. public virtual System.Threading.Tasks.Task CorporateFormLovWhere(Country= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous806 > orderby, System.Collections.Generic.IEnumerable < Anonymous807 > select, Country country) { return CorporateFormLovWhere(Country = '')Async(top, skip, count, filter, orderby, select, country, System.Threading.CancellationToken.None); } /// /// Invoke function CorporateFormLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function CorporateFormLovWhere /// A server side error occurred. public virtual Response168 CorporateFormLovWhere(Country= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, Country country) { return System.Threading.Tasks.Task.Run(async () => await CorporateFormLovWhere(Country = '')Async(top, skip, count, filter, orderby, select, country, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function CorporateFormLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function CorporateFormLovWhere /// A server side error occurred. public virtual async System.Threading.Tasks.Task CorporateFormLovWhere(Country= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous806 > orderby, System.Collections.Generic.IEnumerable < Anonymous807 > select, Country country, System.Threading.CancellationToken cancellationToken) { if (country == null) throw new System.ArgumentNullException("country"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CorporateFormLovWhere(Country='{Country}')?"); urlBuilder_.Replace("{Country}", System.Uri.EscapeDataString(ConvertToString(country, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } /// /// Invoke function BusinessClassificationLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function BusinessClassificationLovWhere /// A server side error occurred. public virtual System.Threading.Tasks.Task BusinessClassificationLovWhere(Country= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous808 > orderby, System.Collections.Generic.IEnumerable < Anonymous809 > select, Country2 country) { return BusinessClassificationLovWhere(Country = '')Async(top, skip, count, filter, orderby, select, country, System.Threading.CancellationToken.None); } /// /// Invoke function BusinessClassificationLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function BusinessClassificationLovWhere /// A server side error occurred. public virtual Response169 BusinessClassificationLovWhere(Country= '')(int? top, int? skip, bool? count, string filter, System.Collections.Generic.IEnumerable orderby, System.Collections.Generic.IEnumerable select, Country2 country) { return System.Threading.Tasks.Task.Run(async () => await BusinessClassificationLovWhere(Country = '')Async(top, skip, count, filter, orderby, select, country, System.Threading.CancellationToken.None)).GetAwaiter().GetResult(); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// Invoke function BusinessClassificationLovWhere /// /// Show only the first n items, see [OData Paging - Top](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$top_System_1) /// Skip the first n items, see [OData Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$skip_System) /// Include count of items, see [OData Count](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$inlinecount_System) /// Filter items by property values, see [OData Filtering](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$filter_System) /// Order items by property values, see [OData Sorting](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_The_$select_System_1) /// Specify properties to return, see [OData Select](http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/part1-protocol/odata-v4.0-errata03-os-part1-protocol-complete.html#_System_Query_Option_3) /// response body for function BusinessClassificationLovWhere /// A server side error occurred. public virtual async System.Threading.Tasks.Task BusinessClassificationLovWhere(Country= '')Async(int ? top, int ? skip, bool ? count, string filter, System.Collections.Generic.IEnumerable < Anonymous808 > orderby, System.Collections.Generic.IEnumerable < Anonymous809 > select, Country2 country, System.Threading.CancellationToken cancellationToken) { if (country == null) throw new System.ArgumentNullException("country"); var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/BusinessClassificationLovWhere(Country='{Country}')?"); urlBuilder_.Replace("{Country}", System.Uri.EscapeDataString(ConvertToString(country, System.Globalization.CultureInfo.InvariantCulture))); if (top != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$top") + "=").Append(System.Uri.EscapeDataString(ConvertToString(top, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (skip != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$skip") + "=").Append(System.Uri.EscapeDataString(ConvertToString(skip, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (count != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$count") + "=").Append(System.Uri.EscapeDataString(ConvertToString(count, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (filter != null) { urlBuilder_.Append(System.Uri.EscapeDataString("$filter") + "=").Append(System.Uri.EscapeDataString(ConvertToString(filter, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } if (orderby != null) { foreach (var item_ in orderby) { urlBuilder_.Append(System.Uri.EscapeDataString("$orderby") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } if (select != null) { foreach (var item_ in select) { urlBuilder_.Append(System.Uri.EscapeDataString("$select") + "=").Append(System.Uri.EscapeDataString(ConvertToString(item_, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } } urlBuilder_.Length--; var client_ = _httpClient; var disposeClient_ = false; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); var disposeResponse_ = true; try { var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); if (response_.Content != null && response_.Content.Headers != null) { foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } ProcessResponse(client_, response_); var status_ = (int)response_.StatusCode; if (status_ == 200) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } return objectResponse_.Object; } else if (status_ == 202) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Accepted", status_, responseText_, headers_, null); } else if (status_ == 204) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("No Content", status_, responseText_, headers_, null); } else if (status_ == 403) { string responseText_ = (response_.Content == null) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("Forbidden", status_, responseText_, headers_, null); } else if (status_ == 404) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Not found", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else if (status_ == 500) { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); } throw new ApiException("Internal Server Error", status_, objectResponse_.Text, headers_, objectResponse_.Object, null); } else { var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); } } finally { if (disposeResponse_) response_.Dispose(); } } } finally { if (disposeClient_) client_.Dispose(); } } protected struct ObjectResponseResult { public ObjectResponseResult(T responseObject, string responseText) { this.Object = responseObject; this.Text = responseText; } public T Object { get; } public string Text { get; } } public bool ReadResponseAsString { get; set; } protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken) { if (response == null || response.Content == null) { return new ObjectResponseResult(default(T), string.Empty); } if (ReadResponseAsString) { var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); try { var typedBody = System.Text.Json.JsonSerializer.Deserialize(responseText, JsonSerializerSettings); return new ObjectResponseResult(typedBody, responseText); } catch (System.Text.Json.JsonException exception) { var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); } } else { try { using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) { var typedBody = await System.Text.Json.JsonSerializer.DeserializeAsync(responseStream, JsonSerializerSettings, cancellationToken).ConfigureAwait(false); return new ObjectResponseResult(typedBody, string.Empty); } } catch (System.Text.Json.JsonException exception) { var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); } } } private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo) { if (value == null) { return ""; } if (value is System.Enum) { var name = System.Enum.GetName(value.GetType(), value); if (name != null) { var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); if (field != null) { var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) as System.Runtime.Serialization.EnumMemberAttribute; if (attribute != null) { return attribute.Value != null ? attribute.Value : name; } } var converted = System.Convert.ToString(System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(value.GetType()), cultureInfo)); return converted == null ? string.Empty : converted; } } else if (value is bool) { return System.Convert.ToString((bool)value, cultureInfo).ToLowerInvariant(); } else if (value is byte[]) { return System.Convert.ToBase64String((byte[])value); } else if (value.GetType().IsArray) { var array = System.Linq.Enumerable.OfType((System.Array)value); return string.Join(",", System.Linq.Enumerable.Select(array, o => ConvertToString(o, cultureInfo))); } var result = System.Convert.ToString(value, cultureInfo); return result == null ? "" : result; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("YearEndPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string YearEndPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompetitorId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompetitorId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccountDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccountDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("YearEndPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string YearEndPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompetitorId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompetitorId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccountDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccountDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("YearEndPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string YearEndPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompetitorId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompetitorId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccountDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccountDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("YearEndPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string YearEndPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompetitorId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompetitorId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAccountDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeyAccountDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CrmCustInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomer { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPayName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPayName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCodeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCodeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountTypeDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountTypeDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditCtrlGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditCtrlGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AdvInvFullPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AdvInvFullPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReceivePackSizeChg")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReceivePackSizeChg { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CyclePeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CyclePeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastIvcDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastIvcDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateDel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateDel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGrpDelivConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGrpDelivConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DocumentText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAmountsInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAmountsInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoDelnoteCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoDelnoteCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailOrderConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailOrderConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutoDespatchAdvSend")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AutoDespatchAdvSend { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MulTierDelNotification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MulTierDelNotification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RecAdvAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatchDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatchDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SbiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SbiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdatePriceFromSbi")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdatePriceFromSbi { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowAutoSubOfParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowAutoSubOfParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bAutoCreateCoFromSq")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bAutoCreateCoFromSq { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstaled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstaled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstalled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstalled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintWithholdingTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintWithholdingTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerUpdate { [System.Text.Json.Serialization.JsonPropertyName("CustRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPayName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPayName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCodeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCodeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountTypeDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountTypeDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditCtrlGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditCtrlGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AdvInvFullPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AdvInvFullPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReceivePackSizeChg")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReceivePackSizeChg { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CyclePeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CyclePeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastIvcDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastIvcDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateDel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateDel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGrpDelivConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGrpDelivConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAmountsInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAmountsInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoDelnoteCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoDelnoteCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailOrderConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailOrderConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutoDespatchAdvSend")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AutoDespatchAdvSend { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MulTierDelNotification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MulTierDelNotification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RecAdvAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatchDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatchDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SbiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SbiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdatePriceFromSbi")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdatePriceFromSbi { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowAutoSubOfParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowAutoSubOfParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bAutoCreateCoFromSq")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bAutoCreateCoFromSq { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstaled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstaled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstalled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstalled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintWithholdingTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintWithholdingTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPayName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPayName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCodeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCodeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountTypeDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountTypeDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditCtrlGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditCtrlGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AdvInvFullPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AdvInvFullPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReceivePackSizeChg")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReceivePackSizeChg { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CyclePeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CyclePeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastIvcDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastIvcDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateDel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateDel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGrpDelivConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGrpDelivConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DocumentText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAmountsInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAmountsInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoDelnoteCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoDelnoteCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailOrderConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailOrderConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutoDespatchAdvSend")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AutoDespatchAdvSend { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MulTierDelNotification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MulTierDelNotification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RecAdvAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatchDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatchDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SbiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SbiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdatePriceFromSbi")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdatePriceFromSbi { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowAutoSubOfParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowAutoSubOfParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bAutoCreateCoFromSq")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bAutoCreateCoFromSq { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstaled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstaled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstalled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstalled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintWithholdingTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintWithholdingTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNoPayName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNoPayName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCodeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCodeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountTypeDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountTypeDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditCtrlGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditCtrlGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AdvInvFullPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AdvInvFullPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReceivePackSizeChg")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReceivePackSizeChg { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CyclePeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CyclePeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastIvcDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastIvcDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateDel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateDel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGrpDelivConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGrpDelivConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DocumentText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAmountsInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAmountsInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoDelnoteCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoDelnoteCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailOrderConf")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailOrderConf { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmailInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EmailInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutoDespatchAdvSend")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AutoDespatchAdvSend { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MulTierDelNotification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MulTierDelNotification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RecAdvAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecAdvAutoMatchDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RecAdvAutoMatchDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SbiAutoApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SbiAutoApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdatePriceFromSbi")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdatePriceFromSbi { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowAutoSubOfParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowAutoSubOfParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bAutoCreateCoFromSq")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bAutoCreateCoFromSq { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstaled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstaled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayledInstalled")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PayledInstalled { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintWithholdingTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintWithholdingTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdCustomerCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStruct { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAssortmentDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAssortmentDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LimitSalesToAssortmentsDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LimitSalesToAssortmentsDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesLimitationsForOtherAssortmentsExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SalesLimitationsForOtherAssortmentsExist { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStructUpdate { [System.Text.Json.Serialization.JsonPropertyName("DefaultAssortmentDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAssortmentDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LimitSalesToAssortmentsDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LimitSalesToAssortmentsDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStructInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAssortmentDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAssortmentDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LimitSalesToAssortmentsDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LimitSalesToAssortmentsDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesLimitationsForOtherAssortmentsExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SalesLimitationsForOtherAssortmentsExist { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStructDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAssortmentDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAssortmentDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LimitSalesToAssortmentsDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LimitSalesToAssortmentsDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesLimitationsForOtherAssortmentsExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SalesLimitationsForOtherAssortmentsExist { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStructDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerAssortmentStructCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParams { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayingCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayingCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintReferance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintReferance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OtherPayer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParamsUpdate { [System.Text.Json.Serialization.JsonPropertyName("PayingCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayingCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintReferance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintReferance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OtherPayer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParamsInsert { [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayingCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayingCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintReferance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintReferance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OtherPayer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParamsDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayingCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayingCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintReferance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintReferance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OtherPayer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParamsDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerPrjrepParamsCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IdentifierReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IdentifierReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidDataProcessingPurpose")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidDataProcessingPurpose { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VisibleDataSubConstColumn")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VisibleDataSubConstColumn { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLogo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerLogo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassificationDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassificationDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IdentifierReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IdentifierReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VisibleDataSubConstColumn")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VisibleDataSubConstColumn { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLogo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerLogo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassificationDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassificationDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IdentifierReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IdentifierReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidDataProcessingPurpose")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidDataProcessingPurpose { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VisibleDataSubConstColumn")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VisibleDataSubConstColumn { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLogo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerLogo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassificationDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassificationDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IdentifierReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IdentifierReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("B2bCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? B2bCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidDataProcessingPurpose")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidDataProcessingPurpose { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VisibleDataSubConstColumn")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VisibleDataSubConstColumn { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassificationDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassificationDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReportCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReportCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LayoutFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LayoutFormat { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("ReportCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReportCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LayoutFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LayoutFormat { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReportCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReportCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LayoutFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LayoutFormat { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReportCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReportCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LayoutFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LayoutFormat { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public TaxIdTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrencyCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrencyCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrencyCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrencyCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CurrencyTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethod { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompanyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompanyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomsId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomsId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwarderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwarderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManufacturerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManufacturerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OwnerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OwnerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeDbVal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeDbVal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethodUpdate { [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeDbVal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeDbVal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethodInsert { [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeDbVal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeDbVal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethodDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeDbVal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeDbVal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethodDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CommMethodCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeTypeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeTypeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesUnitMeas")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesUnitMeas { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Taxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Taxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UnitCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UnitCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StatisticalCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StatisticalCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("ChargeTypeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeTypeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesUnitMeas")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesUnitMeas { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Taxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Taxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UnitCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UnitCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StatisticalCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StatisticalCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeTypeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeTypeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesUnitMeas")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesUnitMeas { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Taxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Taxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UnitCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UnitCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StatisticalCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StatisticalCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeTypeDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeTypeDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesUnitMeas")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesUnitMeas { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Taxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Taxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UnitCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UnitCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StatisticalCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StatisticalCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesChargeTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CorporateForm { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CorporateFormUpdate { [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CorporateFormInsert { [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateFormDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateFormDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessClassification { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExternalTaxSystemRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExternalTaxSystemRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessClassificationUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExternalTaxSystemRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExternalTaxSystemRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessClassificationInsert { [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessClassification")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessClassification { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExternalTaxSystemRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExternalTaxSystemRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPrice { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPriceUpdate { [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPriceInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPriceDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSalesPriceName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSalesPriceName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPriceDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ProjectSalesPriceCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRoute { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckOnLineLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckOnLineLevel { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRouteUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckOnLineLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckOnLineLevel { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRouteInsert { [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckOnLineLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckOnLineLevel { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRouteDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckOnLineLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckOnLineLevel { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRouteDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DeliveryRouteCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCode { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvFactor")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ConvFactor { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyRounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyRounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DecimalsInRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DecimalsInRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inverted")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inverted { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrencyFromDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrencyFromDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCodeUpdate { [System.Text.Json.Serialization.JsonPropertyName("ConvFactor")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ConvFactor { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyRounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyRounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DecimalsInRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DecimalsInRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrencyFromDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrencyFromDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCodeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvFactor")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ConvFactor { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyRounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyRounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DecimalsInRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DecimalsInRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inverted")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inverted { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrencyFromDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrencyFromDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCodeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvFactor")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ConvFactor { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyRounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyRounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DecimalsInRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DecimalsInRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inverted")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inverted { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrencyFromDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrencyFromDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCodeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CurrencyCodeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTempl { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnB { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnB { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTemplUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnB { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnB { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTemplInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnB { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnB { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTemplDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteOnB { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnA")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnA { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TitleOnB")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TitleOnB { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTemplDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ConfirmationStmntTemplCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContact { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseAsDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseAsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContactUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseAsDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseAsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContactInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseAsDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseAsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContactDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseAsDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseAsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContactDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ArContactCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMargin { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjSupplierMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjSupplierMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMarginUpdate { [System.Text.Json.Serialization.JsonPropertyName("ProjSupplierMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjSupplierMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMarginInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjSupplierMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjSupplierMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMarginDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectSupplierMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectSupplierMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjSupplierMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjSupplierMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMarginDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ProjectSupplierMarginCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxReductionAtPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxReductionAtPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscForPartialPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DiscForPartialPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCustSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCustSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultSuppSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultSuppSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSuppNegBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSuppNegBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShowNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShowNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCustCredInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCustCredInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenBestPaymentTerm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GenBestPaymentTerm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludePaymOnAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludePaymOnAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclSuppAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclSuppAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WriteOffPartialPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? WriteOffPartialPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeRecurringPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeRecurringPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeNonSuppPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeNonSuppPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostInterestInvSeparate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PostInterestInvSeparate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatePaymentMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreatePaymentMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeDebitInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeDebitInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayAdvPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayAdvPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayOffsetPossible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayOffsetPossible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayNettPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayNettPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeSupp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeSupp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepostedInvoicePrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepostedInvoicePrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustWithPosBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustWithPosBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidateIndemnities")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidateIndemnities { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrepayBasedPrepayType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrepayBasedPrepayType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxReductionAtPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxReductionAtPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscForPartialPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DiscForPartialPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCustSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCustSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultSuppSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultSuppSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSuppNegBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSuppNegBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShowNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShowNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCustCredInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCustCredInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenBestPaymentTerm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GenBestPaymentTerm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludePaymOnAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludePaymOnAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclSuppAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclSuppAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WriteOffPartialPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? WriteOffPartialPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeRecurringPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeRecurringPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeNonSuppPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeNonSuppPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostInterestInvSeparate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PostInterestInvSeparate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatePaymentMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreatePaymentMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeDebitInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeDebitInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayAdvPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayAdvPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayOffsetPossible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayOffsetPossible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayNettPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayNettPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepostedInvoicePrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepostedInvoicePrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustWithPosBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustWithPosBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidateIndemnities")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidateIndemnities { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrepayBasedPrepayType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrepayBasedPrepayType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxReductionAtPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxReductionAtPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscForPartialPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DiscForPartialPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCustSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCustSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultSuppSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultSuppSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSuppNegBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSuppNegBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShowNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShowNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCustCredInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCustCredInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenBestPaymentTerm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GenBestPaymentTerm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludePaymOnAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludePaymOnAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclSuppAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclSuppAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WriteOffPartialPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? WriteOffPartialPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeRecurringPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeRecurringPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeNonSuppPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeNonSuppPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostInterestInvSeparate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PostInterestInvSeparate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatePaymentMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreatePaymentMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeDebitInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeDebitInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayAdvPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayAdvPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayOffsetPossible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayOffsetPossible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayNettPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayNettPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepostedInvoicePrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepostedInvoicePrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustWithPosBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustWithPosBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidateIndemnities")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidateIndemnities { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrepayBasedPrepayType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrepayBasedPrepayType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxReductionAtPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxReductionAtPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscForPartialPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DiscForPartialPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCustSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCustSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultSuppSeries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultSuppSeries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSuppNegBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSuppNegBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShowNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShowNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustCredInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustCredInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllocateCustCredInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllocateCustCredInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustNettingPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustNettingPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenBestPaymentTerm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GenBestPaymentTerm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludePaymOnAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludePaymOnAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SudiffItemInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SudiffItemInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclCustAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclCustAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclSuppAdvancePayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclSuppAdvancePayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WriteOffPartialPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? WriteOffPartialPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeRecurringPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeRecurringPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeNonSuppPayments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeNonSuppPayments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostInterestInvSeparate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PostInterestInvSeparate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatePaymentMatching")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreatePaymentMatching { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeDebitInvoices")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeDebitInvoices { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayPaymOnAcc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayPaymOnAcc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclRepayAdvPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InclRepayAdvPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayOffsetPossible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayOffsetPossible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepayNettPossibility")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RepayNettPossibility { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepostedInvoicePrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepostedInvoicePrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeCustWithPosBal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeCustWithPosBal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidateIndemnities")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ValidateIndemnities { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrepayBasedPrepayType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrepayBasedPrepayType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CompanyPayInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReason { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReason1 { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReasonUpdate { [System.Text.Json.Serialization.JsonPropertyName("InvoiceReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReason { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReasonInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReason { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReasonDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReason { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReasonDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoiceReasonCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustPriceGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendar { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExceptionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExceptionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendarUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExceptionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExceptionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendarInsert { [System.Text.Json.Serialization.JsonPropertyName("CalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExceptionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExceptionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendarDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExceptionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExceptionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendarDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public WorkTimeCalendarCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMargin { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMarginUpdate { [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMarginInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMarginDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TravelExpMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TravelExpMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMarginDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StandardTravExpMarginCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUser { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OracleUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OracleUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WebUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WebUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Active")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Active { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultIdp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultIdp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FromScim")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FromScim { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUserUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OracleUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OracleUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WebUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WebUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Active")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Active { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultIdp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultIdp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FromScim")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FromScim { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUserInsert { [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OracleUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OracleUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WebUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WebUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Active")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Active { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultIdp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultIdp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FromScim")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FromScim { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUserDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OracleUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OracleUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WebUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WebUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Active")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Active { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultIdp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultIdp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FromScim")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FromScim { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUserDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FndUserCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Site { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManufCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManufCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Offset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Offset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DataCaptureMenuId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DataCaptureMenuId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SiteUpdate { [System.Text.Json.Serialization.JsonPropertyName("DeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManufCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManufCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Offset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Offset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DataCaptureMenuId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DataCaptureMenuId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SiteInsert { [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManufCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManufCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Offset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Offset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DataCaptureMenuId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DataCaptureMenuId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SiteDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManufCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManufCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Offset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Offset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DataCaptureMenuId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DataCaptureMenuId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SiteDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SiteCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarket { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarketUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarketInsert { [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarketDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarketDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesMarketCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupUnit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupUnit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupUnit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupUnit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupUnit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupUnit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesPriceGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControl { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControlUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControlInsert { [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControlDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControlDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdPrintControlCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwarderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwarderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("ForwarderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwarderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwarderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwarderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ForwarderInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AlternativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AlternativeName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BirthName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BirthName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Alias")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Alias { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JobTitle")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JobTitle { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Protected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureThumbnailId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureThumbnailId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inactive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inactive { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactSuppliers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactSuppliers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdateConBlockForCrmObjs")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdateConBlockForCrmObjs { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SupplierContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUseSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUseSupplier { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AlternativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AlternativeName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BirthName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BirthName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Alias")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Alias { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JobTitle")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JobTitle { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Protected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureThumbnailId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureThumbnailId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inactive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inactive { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SupplierContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUseSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUseSupplier { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AlternativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AlternativeName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BirthName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BirthName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Alias")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Alias { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JobTitle")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JobTitle { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Protected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureThumbnailId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureThumbnailId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inactive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inactive { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SupplierContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUseSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUseSupplier { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AlternativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AlternativeName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BirthName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BirthName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Alias")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Alias { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JobTitle")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JobTitle { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Protected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureThumbnailId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureThumbnailId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inactive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inactive { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SupplierContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUseSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUseSupplier { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PersonInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplate { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateReminder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateReminder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccruedInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AccruedInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintInvoicesNotDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintInvoicesNotDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintCustomerCredits")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintCustomerCredits { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclInstAmountDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclInstAmountDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclReminderAmtDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclReminderAmtDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HighestReminderLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HighestReminderLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintHighestLevelOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintHighestLevelOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderCreditItems")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderCreditItems { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderLayoutId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderLayoutId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdditionalRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdditionalRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptDelayForCredit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AcceptDelayForCredit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplateUpdate { [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateReminder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateReminder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccruedInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AccruedInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintInvoicesNotDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintInvoicesNotDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintCustomerCredits")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintCustomerCredits { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclInstAmountDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclInstAmountDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclReminderAmtDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclReminderAmtDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HighestReminderLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HighestReminderLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintHighestLevelOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintHighestLevelOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderCreditItems")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderCreditItems { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderLayoutId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderLayoutId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdditionalRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdditionalRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptDelayForCredit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AcceptDelayForCredit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplateInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateReminder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateReminder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccruedInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AccruedInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintInvoicesNotDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintInvoicesNotDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintCustomerCredits")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintCustomerCredits { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclInstAmountDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclInstAmountDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclReminderAmtDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclReminderAmtDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HighestReminderLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HighestReminderLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintHighestLevelOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintHighestLevelOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderCreditItems")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderCreditItems { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderLayoutId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderLayoutId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdditionalRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdditionalRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptDelayForCredit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AcceptDelayForCredit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplateDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateReminder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateReminder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccruedInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AccruedInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintInvoicesNotDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintInvoicesNotDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintCustomerCredits")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintCustomerCredits { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclInstAmountDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclInstAmountDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExclReminderAmtDue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExclReminderAmtDue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HighestReminderLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HighestReminderLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintHighestLevelOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintHighestLevelOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderCreditItems")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderCreditItems { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderLayoutId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderLayoutId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdditionalRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdditionalRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptDelayForCredit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AcceptDelayForCredit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplateDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ReminderTemplateCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceList { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidToDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidToDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Rounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Rounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupPriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupPriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OwningCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OwningCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceBreakTemplates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceBreakTemplates { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AwaitReview")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AwaitReview { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultBasePriceSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultBasePriceSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPercentageOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultPercentageOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAmountOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultAmountOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SubscribeNewSalesParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SubscribeNewSalesParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidToDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidToDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Rounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Rounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupPriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupPriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceBreakTemplates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceBreakTemplates { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AwaitReview")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AwaitReview { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultBasePriceSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultBasePriceSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPercentageOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultPercentageOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAmountOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultAmountOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SubscribeNewSalesParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SubscribeNewSalesParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListInsert { [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidToDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidToDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Rounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Rounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupPriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupPriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OwningCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OwningCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceBreakTemplates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceBreakTemplates { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AwaitReview")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AwaitReview { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultBasePriceSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultBasePriceSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPercentageOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultPercentageOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAmountOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultAmountOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SubscribeNewSalesParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SubscribeNewSalesParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidToDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidToDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Rounding")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Rounding { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupPriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupPriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OwningCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OwningCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceBreakTemplates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceBreakTemplates { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AwaitReview")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AwaitReview { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultBasePriceSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultBasePriceSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPercentageOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultPercentageOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAmountOffset")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DefaultAmountOffset { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SubscribeNewSalesParts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SubscribeNewSalesParts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesPriceListCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrict { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrictUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrictInsert { [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrictDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrictDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesDistrictCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCode { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCodeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCodeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCodeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCodeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoicePropertyCodeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrency { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrencyUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrencyInsert { [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrencyDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CurrencyNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrencyDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IsoCurrencyCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmShipmentLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmShipmentLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApproveBeforeDelivery")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ApproveBeforeDelivery { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeepManualWeightVol")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeepManualWeightVol { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackingProposalId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackingProposalId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmShipmentLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmShipmentLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApproveBeforeDelivery")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ApproveBeforeDelivery { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeepManualWeightVol")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeepManualWeightVol { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackingProposalId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackingProposalId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmShipmentLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmShipmentLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApproveBeforeDelivery")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ApproveBeforeDelivery { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeepManualWeightVol")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeepManualWeightVol { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackingProposalId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackingProposalId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmShipmentLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmShipmentLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApproveBeforeDelivery")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ApproveBeforeDelivery { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeepManualWeightVol")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? KeepManualWeightVol { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackingProposalId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackingProposalId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ShipmentTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevel { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CustomerLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevelUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevelInsert { [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CustomerLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevelDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CustomerLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevelDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerHierarchyLevelCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GrossCalc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GrossCalc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PageFooting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PageFooting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SepInvAuth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SepInvAuth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VoucherAtInvEntry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? VoucherAtInvEntry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SameVoucherNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SameVoucherNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalIncomeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InternalIncomeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomeTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomeTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumbCustInvDateOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NumbCustInvDateOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DisplayDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DisplayDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePostingProposal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePostingProposal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceAccToPostCtrl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ToleranceAccToPostCtrl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefTaxWithholdingCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefTaxWithholdingCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdvPayOnCuInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdvPayOnCuInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyTypeSupp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyTypeSupp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AccCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InvoicCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UniquePaymentReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UniquePaymentReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatchInvoiceAtArrival")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MatchInvoiceAtArrival { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("GrossCalc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GrossCalc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PageFooting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PageFooting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SepInvAuth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SepInvAuth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VoucherAtInvEntry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? VoucherAtInvEntry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SameVoucherNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SameVoucherNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalIncomeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InternalIncomeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumbCustInvDateOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NumbCustInvDateOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DisplayDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DisplayDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePostingProposal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePostingProposal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceAccToPostCtrl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ToleranceAccToPostCtrl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefTaxWithholdingCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefTaxWithholdingCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdvPayOnCuInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdvPayOnCuInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AccCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InvoicCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UniquePaymentReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UniquePaymentReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatchInvoiceAtArrival")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MatchInvoiceAtArrival { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GrossCalc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GrossCalc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PageFooting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PageFooting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SepInvAuth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SepInvAuth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VoucherAtInvEntry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? VoucherAtInvEntry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SameVoucherNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SameVoucherNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalIncomeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InternalIncomeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumbCustInvDateOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NumbCustInvDateOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DisplayDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DisplayDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePostingProposal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePostingProposal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceAccToPostCtrl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ToleranceAccToPostCtrl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefTaxWithholdingCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefTaxWithholdingCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdvPayOnCuInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdvPayOnCuInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AccCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InvoicCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UniquePaymentReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UniquePaymentReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatchInvoiceAtArrival")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MatchInvoiceAtArrival { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GrossCalc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? GrossCalc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PageFooting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PageFooting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SepInvAuth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SepInvAuth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VoucherAtInvEntry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? VoucherAtInvEntry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SameVoucherNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SameVoucherNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalIncomeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InternalIncomeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumbCustInvDateOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NumbCustInvDateOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DisplayDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DisplayDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePostingProposal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePostingProposal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceAccToPostCtrl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ToleranceAccToPostCtrl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefTaxWithholdingCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefTaxWithholdingCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintAdvPayOnCuInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintAdvPayOnCuInv { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DocumentPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DocumentPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AttachDocPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AttachDocPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AccCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicCurrDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InvoicCurrDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UniquePaymentReference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UniquePaymentReference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatchInvoiceAtArrival")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MatchInvoiceAtArrival { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CompanyInvoiceInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MessageTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCollectiveVoucher")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCollectiveVoucher { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCollectiveVoucher")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCollectiveVoucher { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCollectiveVoucher")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCollectiveVoucher { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCollectiveVoucher")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCollectiveVoucher { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoicePartyTypeGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclTaxAmountAtInvPrint")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InclTaxAmountAtInvPrint { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Branch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Branch { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclTaxAmountAtInvPrint")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InclTaxAmountAtInvPrint { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Branch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Branch { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclTaxAmountAtInvPrint")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InclTaxAmountAtInvPrint { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Branch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Branch { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InclTaxAmountAtInvPrint")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InclTaxAmountAtInvPrint { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Branch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Branch { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoiceNumerationGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplate { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplateUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplateInsert { [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplateDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplateDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerOrderTemplateCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiver { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AgreementId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AgreementId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiverGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiverGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VendorNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiverUpdate { [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AgreementId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AgreementId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiverGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiverGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VendorNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiverInsert { [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AgreementId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AgreementId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiverGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiverGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VendorNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiverDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AgreementId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AgreementId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiverGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiverGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VendorNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiverDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CommissionReceiverCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMargin { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMarginUpdate { [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMarginInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMarginDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MatWithMarginName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MatWithMarginName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMarginDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StandardMatWithMarginCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFee { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountNotTaxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountNotTaxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinWithheldAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinWithheldAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseWithholdAmountTable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseWithholdAmountTable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinimumBaseAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinimumBaseAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxInTaxBase")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxInTaxBase { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiiExemptReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiiExemptReason { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeFromSiiReporting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcludeFromSiiReporting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EuOperation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EuOperation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StampDuty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? StampDuty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundZeroDecimal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RoundZeroDecimal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFeeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountNotTaxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountNotTaxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinWithheldAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinWithheldAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseWithholdAmountTable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseWithholdAmountTable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinimumBaseAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinimumBaseAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxInTaxBase")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxInTaxBase { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiiExemptReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiiExemptReason { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeFromSiiReporting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcludeFromSiiReporting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EuOperation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EuOperation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StampDuty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? StampDuty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundZeroDecimal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RoundZeroDecimal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFeeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountNotTaxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountNotTaxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinWithheldAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinWithheldAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseWithholdAmountTable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseWithholdAmountTable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinimumBaseAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinimumBaseAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxInTaxBase")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxInTaxBase { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiiExemptReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiiExemptReason { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeFromSiiReporting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcludeFromSiiReporting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EuOperation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EuOperation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StampDuty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? StampDuty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundZeroDecimal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RoundZeroDecimal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFeeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountNotTaxable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountNotTaxable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinWithheldAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinWithheldAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseWithholdAmountTable")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseWithholdAmountTable { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinimumBaseAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinimumBaseAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxInTaxBase")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxInTaxBase { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiiExemptReason")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiiExemptReason { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessTransTypeSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessTransTypeSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeFromSiiReporting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcludeFromSiiReporting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EuOperation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EuOperation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StampDuty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? StampDuty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundZeroDecimal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? RoundZeroDecimal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFeeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StatutoryFeeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchy { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyInsert { [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerHierarchyCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegion { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegionUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegionInsert { [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegionDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegionDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesRegionCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DeductionGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructure { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcCategoryAssortment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ProcCategoryAssortment { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructureUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcCategoryAssortment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ProcCategoryAssortment { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructureInsert { [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcCategoryAssortment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ProcCategoryAssortment { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructureDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcCategoryAssortment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ProcCategoryAssortment { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructureDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public AssortmentStructureCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroupDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("ChargeGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroupDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroupDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroupDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesChargeGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTerm { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockForDirectDebiting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockForDirectDebiting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderPayVacPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderPayVacPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeCreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExcludeCreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuppressAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuppressAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashDiscFixassAcqValue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CashDiscFixassAcqValue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintSwissQRCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintSwissQRCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTermUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockForDirectDebiting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockForDirectDebiting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderPayVacPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderPayVacPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeCreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExcludeCreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuppressAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuppressAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashDiscFixassAcqValue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CashDiscFixassAcqValue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintSwissQRCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintSwissQRCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTermInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockForDirectDebiting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockForDirectDebiting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderPayVacPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderPayVacPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeCreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExcludeCreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuppressAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuppressAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashDiscFixassAcqValue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CashDiscFixassAcqValue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintSwissQRCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintSwissQRCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTermDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockForDirectDebiting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockForDirectDebiting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConsiderPayVacPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConsiderPayVacPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcludeCreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExcludeCreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuppressAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuppressAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashDiscFixassAcqValue")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CashDiscFixassAcqValue { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintSwissQRCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintSwissQRCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTermDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentTermCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipVia { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransportUnitType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TransportUnitType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtTransportCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExtTransportCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipViaUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransportUnitType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TransportUnitType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtTransportCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExtTransportCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipViaInsert { [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransportUnitType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TransportUnitType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtTransportCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExtTransportCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipViaDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransportUnitType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TransportUnitType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtTransportCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExtTransportCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipViaDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MpccomShipViaCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OnlineProcessing")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OnlineProcessing { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowPartialPicking")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowPartialPicking { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrderTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLead { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LeadId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LeadId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TurnoverCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TurnoverCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcessId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProcessId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StageId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StageId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContactGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerContactGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainContactName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainContactName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeLead")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeLead { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdateMainContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdateMainContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdateMainRep")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdateMainRep { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeAddresses")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeAddresses { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeContacts")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeContacts { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeActivities")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeActivities { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeRepresentatives")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeRepresentatives { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeAccess")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeAccess { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MergeBusinessMail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MergeBusinessMail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvertedAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConvertedAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainPersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainPersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccountName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccountName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdateFromHeader")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UpdateFromHeader { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLeadUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TurnoverCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TurnoverCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcessId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProcessId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StageId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StageId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContactGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerContactGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainContactName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainContactName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvertedAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConvertedAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLeadInsert { [System.Text.Json.Serialization.JsonPropertyName("LeadId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LeadId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TurnoverCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TurnoverCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcessId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProcessId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StageId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StageId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContactGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerContactGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainContactName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainContactName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvertedAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConvertedAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLeadDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LeadId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LeadId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporateForm")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporateForm { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Turnover")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Turnover { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TurnoverCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TurnoverCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcessId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProcessId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StageId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StageId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExistingContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExistingContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerContactGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerContactGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainContactName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainContactName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastModified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastModified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConvertedAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConvertedAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLeadDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public BusinessLeadCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesDiscountTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenRelease")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenRelease { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickPlan")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickPlan { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickList")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickList { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenDeliver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenDeliver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultForNewCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultForNewCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtCustCrdChk")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExtCustCrdChk { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroupUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenRelease")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenRelease { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickPlan")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickPlan { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickList")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickList { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenDeliver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenDeliver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultForNewCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultForNewCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtCustCrdChk")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExtCustCrdChk { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroupInsert { [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenRelease")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenRelease { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickPlan")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickPlan { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickList")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickList { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenDeliver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenDeliver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultForNewCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultForNewCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtCustCrdChk")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExtCustCrdChk { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditControlGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditControlGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenRelease")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenRelease { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickPlan")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickPlan { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenPickList")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenPickList { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DoCheckWhenDeliver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DoCheckWhenDeliver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultForNewCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultForNewCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtCustCrdChk")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExtCustCrdChk { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditControlGroupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IcmsTaxPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IcmsTaxPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PermanentEstablishment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PermanentEstablishment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompanyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompanyName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledLccParams")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnabledLccParams { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseSpecificRates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseSpecificRates { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IcmsTaxPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IcmsTaxPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PermanentEstablishment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PermanentEstablishment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompanyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompanyName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IcmsTaxPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IcmsTaxPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PermanentEstablishment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PermanentEstablishment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompanyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompanyName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IcmsTaxPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IcmsTaxPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PermanentEstablishment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PermanentEstablishment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CompanyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CompanyName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CusCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CusCountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookRefDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookRefDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookRefDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookRefDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookRefDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookRefDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookRefDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookRefDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDeliveryTaxInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCode { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCodeSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCodeSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCodeUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCodeSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCodeSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCodeInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCodeSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCodeSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCodeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCodeSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCodeSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCodeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDeliveryFeeCodeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCode { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCodeUpdate { [System.Text.Json.Serialization.JsonPropertyName("VatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCodeInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCodeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCodeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxFreeTaxCodeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExempt { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptionCertNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptionCertNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificateJurisdiction")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificateJurisdiction { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpirationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpirationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExemptUpdate { [System.Text.Json.Serialization.JsonPropertyName("CertificateJurisdiction")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificateJurisdiction { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpirationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpirationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExemptInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptionCertNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptionCertNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificateJurisdiction")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificateJurisdiction { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpirationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpirationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExemptDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptionCertNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptionCertNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificateJurisdiction")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificateJurisdiction { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertificationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertificationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpirationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpirationDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExemptDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDelTaxExemptCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidatedDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidatedDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledLccParams")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnabledLccParams { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidatedDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidatedDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("VatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string VatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidatedDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidatedDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountryDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDocumentTaxInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumber { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumberUpdate { [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumberInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumberDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplyCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplyCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryCountry")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryCountry { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxIdNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxIdNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumberDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerAddrTaxNumberCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateJsInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateJsInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsTaxNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsTaxNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBank")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBank { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBankAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBankAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsMemo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsMemo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowChangesToPrelInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowChangesToPrelInv { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("CreateJsInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateJsInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsTaxNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsTaxNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBank")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBank { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBankAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBankAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsMemo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsMemo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowChangesToPrelInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowChangesToPrelInv { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateJsInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateJsInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsTaxNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsTaxNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBank")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBank { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBankAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBankAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsMemo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsMemo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowChangesToPrelInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowChangesToPrelInv { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateJsInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreateJsInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsTaxNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsTaxNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBank")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBank { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsOpenBankAccount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsOpenBankAccount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsBankPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsBankPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JsMemo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JsMemo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowChangesToPrelInv")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AllowChangesToPrelInv { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public JsCustomerInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceFee")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InvoiceFee { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NationalBankCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NationalBankCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAuthorizer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAuthorizer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundingTaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoundingTaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymDevDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymDevDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefPreliminaryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefPreliminaryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutomaticInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AutomaticInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NcfReferenceCheck")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NcfReferenceCheck { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondTin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SecondTin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierTaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierTaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintTaxCodeText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintTaxCodeText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAutoInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAutoInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefRecManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefRecManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceRecipient")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceRecipient { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicingSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoicingSupplier { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateTolerancePosting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreateTolerancePosting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowQuantityDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowQuantityDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCurrencyRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCurrencyRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsNote")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsNote { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupVatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupVatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupCountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LegalIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostingTemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PostingTemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BiTimestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BiTimestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ServiceCodeRequired")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ServiceCodeRequired { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceReceiverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceReceiverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrCodeEur")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrCodeEur { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledLccParams")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnabledLccParams { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("InvoiceFee")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InvoiceFee { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NationalBankCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NationalBankCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAuthorizer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAuthorizer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundingTaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoundingTaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymDevDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymDevDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefPreliminaryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefPreliminaryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutomaticInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AutomaticInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NcfReferenceCheck")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NcfReferenceCheck { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondTin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SecondTin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierTaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierTaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintTaxCodeText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintTaxCodeText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAutoInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAutoInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefRecManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefRecManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceRecipient")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceRecipient { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicingSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoicingSupplier { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateTolerancePosting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreateTolerancePosting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowQuantityDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowQuantityDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCurrencyRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCurrencyRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupVatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupVatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LegalIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostingTemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PostingTemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BiTimestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BiTimestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ServiceCodeRequired")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ServiceCodeRequired { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceReceiverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceReceiverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrCodeEur")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrCodeEur { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceFee")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InvoiceFee { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NationalBankCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NationalBankCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAuthorizer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAuthorizer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundingTaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoundingTaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymDevDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymDevDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefPreliminaryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefPreliminaryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutomaticInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AutomaticInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NcfReferenceCheck")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NcfReferenceCheck { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondTin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SecondTin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierTaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierTaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintTaxCodeText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintTaxCodeText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAutoInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAutoInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefRecManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefRecManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceRecipient")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceRecipient { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicingSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoicingSupplier { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateTolerancePosting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreateTolerancePosting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowQuantityDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowQuantityDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCurrencyRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCurrencyRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupVatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupVatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LegalIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostingTemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PostingTemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BiTimestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BiTimestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ServiceCodeRequired")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ServiceCodeRequired { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceReceiverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceReceiverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrCodeEur")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrCodeEur { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceFee")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InvoiceFee { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NationalBankCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NationalBankCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAuthorizer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAuthorizer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoundingTaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoundingTaxCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymDevDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymDevDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefPreliminaryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefPreliminaryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AutomaticInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AutomaticInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NcfReferenceCheck")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NcfReferenceCheck { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TaxExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxExemptValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxExemptValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondTin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SecondTin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierTaxOfficeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierTaxOfficeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NumerationGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NumerationGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxBookType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintTaxCodeText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PrintTaxCodeText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoInvoiceCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoInvoiceCopies { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAutoInvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefAutoInvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefRecManSuppInvType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefRecManSuppInvType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceRecipient")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceRecipient { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoicingSupplier")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoicingSupplier { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreateTolerancePosting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreateTolerancePosting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowQuantityDiff")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AllowQuantityDiff { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCurrencyRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCurrencyRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupVatFreeVatCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupVatFreeVatCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? LegalIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PostingTemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PostingTemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LegalIdAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LegalIdAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BiTimestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BiTimestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FiscalNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FiscalNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExcFromSpesometroDec")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ExcFromSpesometroDec { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ServiceCodeRequired")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ServiceCodeRequired { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceReceiverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceReceiverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RefCurrCodeEur")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RefCurrCodeEur { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IdentityInvoiceInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdProperty { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdPropertyUpdate { [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdPropertyInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdPropertyDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdPropertyDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PartyTypeIdPropertyCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetupUpdate { [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetupInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInvMsgSetupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageClass { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Action")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Action { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Module")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Module { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageClassUpdate { [System.Text.Json.Serialization.JsonPropertyName("Action")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Action { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Module")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Module { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageClassInsert { [System.Text.Json.Serialization.JsonPropertyName("ClassId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Action")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Action { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Notes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Notes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Module")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Module { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageMedia { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageMediaUpdate { [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageMediaInsert { [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageReceiver { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Receiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Receiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiteId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageReceiverUpdate { [System.Text.Json.Serialization.JsonPropertyName("Receiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Receiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiteId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageReceiverInsert { [System.Text.Json.Serialization.JsonPropertyName("Receiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Receiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SiteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SiteId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LanguageCode { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LangCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LangCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DerivedFromLangCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DerivedFromLangCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTerritory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTerritory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsLanguage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsLanguage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LangCodeRfc3066")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LangCodeRfc3066 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsDateFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsDateFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTimeFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTimeFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Installed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Installed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledForLogin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EnabledForLogin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DictionaryUpdate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DictionaryUpdate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShortDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShortDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediumDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediumDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LongDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LongDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LanguageCodeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DerivedFromLangCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DerivedFromLangCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTerritory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTerritory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsLanguage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsLanguage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LangCodeRfc3066")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LangCodeRfc3066 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsDateFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsDateFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTimeFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTimeFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Installed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Installed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledForLogin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EnabledForLogin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DictionaryUpdate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DictionaryUpdate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShortDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShortDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediumDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediumDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LongDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LongDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LanguageCodeInsert { [System.Text.Json.Serialization.JsonPropertyName("LangCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LangCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DerivedFromLangCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DerivedFromLangCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTerritory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTerritory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsLanguage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsLanguage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LangCodeRfc3066")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LangCodeRfc3066 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsDateFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsDateFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NlsTimeFormat")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NlsTimeFormat { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Installed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Installed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledForLogin")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? EnabledForLogin { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DictionaryUpdate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DictionaryUpdate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShortDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShortDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediumDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediumDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LongDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LongDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayeeIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayeeIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymentDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymentDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NettingAllowed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NettingAllowed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FormatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporationId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MemberId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MemberId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendReminderToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendReminderToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendInterestInvToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendInterestInvToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RuleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RuleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendStmtOfAccToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendStmtOfAccToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentMethod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentMethod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupplierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupplierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextPaymentMatchingId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NextPaymentMatchingId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPayDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPayDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayerDeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerDeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayerDeductionGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerDeductionGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayerCorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerCorporationId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ToleranceCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OldReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OldReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayeeIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayeeIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymentDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymentDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NettingAllowed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NettingAllowed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FormatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporationId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MemberId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MemberId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendReminderToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendReminderToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendInterestInvToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendInterestInvToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RuleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RuleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendStmtOfAccToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendStmtOfAccToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentMethod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentMethod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextPaymentMatchingId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NextPaymentMatchingId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPayDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPayDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ToleranceCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OldReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OldReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayeeIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayeeIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymentDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymentDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NettingAllowed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NettingAllowed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FormatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporationId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MemberId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MemberId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendReminderToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendReminderToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendInterestInvToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendInterestInvToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RuleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RuleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendStmtOfAccToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendStmtOfAccToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentMethod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentMethod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextPaymentMatchingId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NextPaymentMatchingId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPayDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPayDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ToleranceCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OldReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OldReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayeeIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayeeIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PaymentDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PaymentDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AmountTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AmountTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PercentTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PercentTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscDaysTolerance")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DiscDaysTolerance { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NettingAllowed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NettingAllowed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FormatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorporationId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MemberId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MemberId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendReminderToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendReminderToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendInterestInvToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendInterestInvToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RuleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RuleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SendStmtOfAccToPayer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SendStmtOfAccToPayer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ArContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ArContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentMethod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentMethod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextPaymentMatchingId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NextPaymentMatchingId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsOneInvPerPayDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsOneInvPerPayDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ToleranceCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ToleranceCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OldReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OldReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IdentityPayInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyFinance { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParallelAccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParallelAccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TimeStamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RecalculationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RecalculationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationFinished")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationFinished { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseVouNoPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseVouNoPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserDefCal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserDefCal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParallelRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParallelRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MasterCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MasterCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MasterCompanyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MasterCompanyName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyFinanceUpdate { [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationFinished")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationFinished { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseVouNoPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseVouNoPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParallelRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParallelRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MasterCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MasterCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyFinanceInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParallelAccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParallelAccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TimeStamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationFinished")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationFinished { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseVouNoPeriod")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseVouNoPeriod { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserDefCal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserDefCal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParallelRateType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParallelRateType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MasterCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MasterCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentity { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentWay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentWay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClientMapping")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClientMapping { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsPayAddressConnected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? IsPayAddressConnected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BaseFormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BaseFormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentityUpdate { [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentWay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentWay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentityInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentWay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentWay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClientMapping")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClientMapping { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentityDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultPaymentWay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultPaymentWay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClientMapping")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClientMapping { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentityDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentWayPerIdentityCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddress { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data7")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data7 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data8")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data8 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data9")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data9 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data10")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data10 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data11")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data11 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data12")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data12 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data13")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data13 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data14")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data14 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data15")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data15 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data16")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data16 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data17")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data17 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data18")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data18 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data18Db")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data18Db { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data19")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data19 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data19Db")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data19Db { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data20")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data20 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data20Db")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data20Db { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data21")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data21 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data22")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data22 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data23")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data23 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data24")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data24 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data25")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data25 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data26")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data26 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data27")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data27 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data28")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data28 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data29")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data29 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data30")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data30 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data31")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data31 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data32")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data32 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data33")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data33 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data34")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data34 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data35")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data35 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data36")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data36 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data37")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data37 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data38")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data38 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data39")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data39 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data40")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data40 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data41")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data41 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BicCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BicCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MappingType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MappingType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BankAccountValidated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BankAccountValidDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimePartnerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimePartnerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddressUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data7")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data7 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data8")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data8 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data9")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data9 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data10")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data10 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data11")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data11 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data12")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data12 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data13")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data13 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data14")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data14 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data15")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data15 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data16")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data16 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data17")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data17 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data18")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data18 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data19")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data19 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data20")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data20 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data21")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data21 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data22")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data22 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data23")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data23 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data24")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data24 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data25")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data25 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data26")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data26 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data27")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data27 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data28")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data28 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data29")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data29 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data30")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data30 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data31")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data31 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data32")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data32 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data33")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data33 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data34")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data34 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data35")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data35 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data36")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data36 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data37")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data37 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data38")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data38 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data39")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data39 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data40")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data40 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data41")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data41 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BicCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BicCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BankAccountValidated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BankAccountValidDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimePartnerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimePartnerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddressInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data7")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data7 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data8")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data8 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data9")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data9 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data10")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data10 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data11")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data11 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data12")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data12 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data13")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data13 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data14")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data14 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data15")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data15 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data16")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data16 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data17")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data17 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data18")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data18 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data19")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data19 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data20")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data20 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data21")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data21 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data22")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data22 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data23")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data23 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data24")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data24 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data25")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data25 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data26")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data26 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data27")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data27 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data28")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data28 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data29")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data29 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data30")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data30 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data31")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data31 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data32")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data32 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data33")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data33 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data34")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data34 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data35")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data35 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data36")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data36 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data37")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data37 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data38")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data38 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data39")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data39 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data40")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data40 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data41")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data41 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BicCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BicCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BankAccountValidated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BankAccountValidDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimePartnerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimePartnerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddressDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data7")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data7 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data8")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data8 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data9")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data9 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data10")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data10 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data11")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data11 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data12")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data12 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data13")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data13 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data14")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data14 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data15")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data15 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data16")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data16 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data17")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data17 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data18")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data18 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data19")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data19 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data20")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data20 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data21")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data21 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data22")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data22 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data23")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data23 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data24")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data24 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data25")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data25 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data26")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data26 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data27")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data27 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data28")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data28 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data29")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data29 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data30")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data30 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data31")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data31 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data32")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data32 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data33")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data33 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data34")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data34 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data35")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data35 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data36")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data36 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data37")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data37 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data38")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data38 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data39")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data39 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data40")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data40 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Data41")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Data41 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BicCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BicCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BankAccountValidated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BankAccountValidDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BankAccountValidDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimePartnerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimePartnerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OneTimeCustomer { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddressDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentAddressCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfo { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditRating")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditRating { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AvgDaysForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AvgDaysForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditComments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditComments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorpCreditRelationExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CorpCreditRelationExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueAmount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoUpdate { [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditRating")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditRating { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AvgDaysForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AvgDaysForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditComments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditComments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorpCreditRelationExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CorpCreditRelationExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueAmount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditRating")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditRating { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AvgDaysForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AvgDaysForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditComments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditComments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorpCreditRelationExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CorpCreditRelationExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueAmount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditNumber")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditNumber { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditRating")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditRating { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AvgDaysForPayment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AvgDaysForPayment { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditComments")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditComments { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorpCreditRelationExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CorpCreditRelationExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AllowedDueAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AllowedDueAmount { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerCreditInfoCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalyst { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerDescription { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalystUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalystInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalystDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditAnalystCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditAnalystCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalystDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditAnalystCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationship { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationshipUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationshipInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationshipDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationshipDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditRelationshipCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentative { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessObjectId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessObjectId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MainRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepImage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepImage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ImageMimeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ImageMimeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepMobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepMobile { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentativeUpdate { [System.Text.Json.Serialization.JsonPropertyName("MainRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MainRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ImageMimeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ImageMimeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepMobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepMobile { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentativeInsert { [System.Text.Json.Serialization.JsonPropertyName("BusinessObjectId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessObjectId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MainRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepImage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepImage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ImageMimeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ImageMimeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepMobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepMobile { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentativeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessObjectId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessObjectId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MainRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ImageMimeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ImageMimeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepPhone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepPhone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepMobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepMobile { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentativeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public BusObjectRepresentativeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelation { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelationUpdate { [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelationInsert { [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelationDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChildCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChildCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentCompany { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelationDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CrmCompanyRelationCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddress { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentUnconStruct")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShipmentUnconStruct { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelTermsLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelTermsLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsDeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsDeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddressUpdate { [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentUnconStruct")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShipmentUnconStruct { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelTermsLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelTermsLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsDeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsDeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddressInsert { [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentUnconStruct")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShipmentUnconStruct { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelTermsLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelTermsLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsDeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsDeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddressDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DistrictCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DistrictCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RegionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RegionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipViaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipViaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RouteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RouteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTime")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTime { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentUnconStruct")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ShipmentUnconStruct { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelTermsLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelTermsLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustCalendarId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustCalendarId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ShipmentType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ShipmentType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcquisitionSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AcquisitionSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsDeliveryAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IsDeliveryAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddressDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdCustomerAddressCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentText { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentTextUpdate { [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentTextInsert { [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentTextDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentTextDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DocumentTextCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasis { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasisUpdate { [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasisInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasisDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsePriceInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UsePriceInclTax { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasisDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxCalcBasisCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDate { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LineNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? LineNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DayOfMonth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DayOfMonth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MonthEnd")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MonthEnd { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDateUpdate { [System.Text.Json.Serialization.JsonPropertyName("DayOfMonth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DayOfMonth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MonthEnd")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MonthEnd { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDateInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LineNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? LineNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DayOfMonth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DayOfMonth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MonthEnd")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MonthEnd { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDateDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LineNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? LineNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DayOfMonth")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? DayOfMonth { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MonthEnd")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MonthEnd { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDateDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustInvoiceCloseDateCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteria { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteriaUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteriaInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteriaDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteriaDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MultipleRebateCriteriaCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelist { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelistUpdate { [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelistInsert { [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelistDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelistDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerPricelistCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiver { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiverUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiverInsert { [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiverDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiverDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustDefComReceiverCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCharge { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargedQty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargedQty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerChargeUpdate { [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargedQty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargedQty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerChargeInsert { [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargedQty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargedQty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerChargeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargedQty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargedQty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IntrastatExempt")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IntrastatExempt { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChargeGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerChargeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerChargeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccount { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierAccountId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CarrierAccountId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccountUpdate { [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccountInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierAccountId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CarrierAccountId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccountDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierAccountId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CarrierAccountId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccountDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtCustomerAccountCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCarrier { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceVendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceVendorNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ScacCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ScacCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCarrierUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceVendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceVendorNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ScacCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ScacCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCarrierInsert { [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceVendorNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceVendorNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FreightProviderId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FreightProviderId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ScacCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ScacCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddress { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EanLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EanLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressLov")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressLov { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SecondaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrimaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrimaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InCity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InCity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JurisdictionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerBranch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerBranch { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTypeExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DeliveryTypeExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimeDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressUpdate { [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EanLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EanLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SecondaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrimaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrimaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InCity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InCity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerBranch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerBranch { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTypeExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DeliveryTypeExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimeDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EanLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EanLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SecondaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrimaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrimaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InCity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InCity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JurisdictionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerBranch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerBranch { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTypeExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DeliveryTypeExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimeDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EanLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EanLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SecondaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrimaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrimaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InCity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InCity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("JurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string JurisdictionCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CommId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustAddrId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EndCustAddrId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerBranch")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerBranch { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTypeExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DeliveryTypeExist { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OneTimeDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OneTimeDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoAddressCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayer { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ThirdPartyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ThirdPartyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayerUpdate { [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayerInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ThirdPartyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ThirdPartyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayerDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ThirdPartyId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ThirdPartyId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CarrierId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CarrierId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Account")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Account { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Note")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Note { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayerDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtThirdPartyPayerCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxUsageType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxUsageTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxUsageTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerTaxUsageType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerTaxUsageType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurId { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OurId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OurId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurIdUpdate { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OurId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OurId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurIdInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OurId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OurId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurIdDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OurId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OurId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurIdDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoOurIdCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContact { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Guid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Guid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Changed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Changed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConnectAllCustAddr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConnectAllCustAddr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForCrmObjects")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForCrmObjects { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerCustAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerCustAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UpdateMainRep")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UpdateMainRep { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConnectAllCustAddrDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ConnectAllCustAddrDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContactUpdate { [System.Text.Json.Serialization.JsonPropertyName("CustomerPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConnectAllCustAddr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConnectAllCustAddr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForCrmObjects")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForCrmObjects { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerCustAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerCustAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContactInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Guid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Guid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Changed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Changed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConnectAllCustAddr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConnectAllCustAddr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForCrmObjects")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForCrmObjects { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerCustAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerCustAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContactDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Guid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Guid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressPrimary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressSecondary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? AddressSecondary { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Created")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Created { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Changed")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Changed { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConnectAllCustAddr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConnectAllCustAddr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChangedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ChangedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForCrmObjects")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForCrmObjects { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Manager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Manager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerGuid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerGuid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ManagerCustAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ManagerCustAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MainRepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MainRepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContactDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoContactCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetup { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetupUpdate { [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetupInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetupDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MediaCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MediaCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MessageClass")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MessageClass { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MethodDefault")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? MethodDefault { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SequenceNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? SequenceNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Locale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Locale { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetupDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoMsgSetupCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressTypeDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressTypeDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoAddressTypeCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddress { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ResidentialAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ResidentialAddress { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddressUpdate { [System.Text.Json.Serialization.JsonPropertyName("ResidentialAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ResidentialAddress { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddressInsert { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ResidentialAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ResidentialAddress { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddressDefaultCopy { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ResidentialAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ResidentialAddress { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddressDefaultCopy2 { [System.Text.Json.Serialization.JsonPropertyName("CopyValues")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtCustomerInfoAddressCopyValues CopyValues { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddress { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressLov")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressLov { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Street")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Street { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HouseNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HouseNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FlatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FlatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Community")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Community { get; set; } [System.Text.Json.Serialization.JsonPropertyName("District")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string District { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddressUpdate { [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Street")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Street { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HouseNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HouseNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FlatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FlatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Community")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Community { get; set; } [System.Text.Json.Serialization.JsonPropertyName("District")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string District { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddressInsert { [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Street")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Street { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HouseNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HouseNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FlatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FlatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Community")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Community { get; set; } [System.Text.Json.Serialization.JsonPropertyName("District")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string District { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRole { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRoleUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRoleInsert { [System.Text.Json.Serialization.JsonPropertyName("RoleId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoleId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiability { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemDef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SystemDef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiabilityUpdate { [System.Text.Json.Serialization.JsonPropertyName("SystemDef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SystemDef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiabilityInsert { [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemDef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? SystemDef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBook { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBookUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBookInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructure { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructureUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructureInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSelfInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSelfInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnclosureSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnclosureSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSelfInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSelfInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnclosureSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnclosureSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncludeSelfInvoice")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? IncludeSelfInvoice { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnclosureSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnclosureSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReason { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReasonUpdate { [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReasonInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWay { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashAccountInAnyCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CashAccountInAnyCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SourceFormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SourceFormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenerateTraceInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GenerateTraceInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashAccountInAnyCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CashAccountInAnyCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenerateTraceInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GenerateTraceInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CashAccountInAnyCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CashAccountInAnyCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenerateTraceInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GenerateTraceInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplate { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmountTotal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmountTotal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercNoOfDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercNoOfDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FinePercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FinePercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FineToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FineToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReduceTolDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReduceTolDays { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplateUpdate { [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmountTotal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmountTotal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercNoOfDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercNoOfDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FinePercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FinePercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FineToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FineToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReduceTolDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReduceTolDays { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplateInsert { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmountTotal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmountTotal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercNoOfDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercNoOfDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FinePercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FinePercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FineToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FineToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReduceTolDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReduceTolDays { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessRepresentative { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessOppPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessOppPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessActPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessActPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCampPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCampPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutlookSyncActive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OutlookSyncActive { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessRepresentativeUpdate { [System.Text.Json.Serialization.JsonPropertyName("BusinessOppPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessOppPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessActPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessActPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCampPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCampPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutlookSyncActive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OutlookSyncActive { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessRepresentativeInsert { [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessOppPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessOppPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessActPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessActPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCampPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCampPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BusinessLeadPrefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BusinessLeadPrefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutlookSyncActive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OutlookSyncActive { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTerm { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateFreightCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CollectFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CollectFreightCharge { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTermUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateFreightCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CollectFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CollectFreightCharge { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTermInsert { [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateFreightCharge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CollectFreightCharge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CollectFreightCharge { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesman { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesmanUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesmanInsert { [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserDefault { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Userid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Userid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BuyerCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BuyerCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PlannerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PlannerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserDefaultUpdate { [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BuyerCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BuyerCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PlannerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PlannerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserDefaultInsert { [System.Text.Json.Serialization.JsonPropertyName("Userid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Userid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BuyerCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BuyerCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PlannerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PlannerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinator { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeGroup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinatorUpdate { [System.Text.Json.Serialization.JsonPropertyName("AuthorizeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeGroup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinatorInsert { [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeGroup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputType { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputTypeUpdate { [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputTypeInsert { [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseText { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RevisionNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RevisionNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseTextUpdate { [System.Text.Json.Serialization.JsonPropertyName("PhraseText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseTextInsert { [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RevisionNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RevisionNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSite { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Userid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Userid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSiteUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSiteInsert { [System.Text.Json.Serialization.JsonPropertyName("Userid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Userid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountry { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CountryId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultLocale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultLocale { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FetchJurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? FetchJurisdictionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountryUpdate { [System.Text.Json.Serialization.JsonPropertyName("CountryCode3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CountryId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultLocale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultLocale { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FetchJurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? FetchJurisdictionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountryInsert { [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CountryId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UsedInAppl")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UsedInAppl { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultLocale")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultLocale { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? BlockedForUse { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SystemAdded")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SystemAdded { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FetchJurisdictionCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? FetchJurisdictionCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressPublic { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EanLocation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EanLocation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressLov")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressLov { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SecondaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SecondaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrimaryContact")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrimaryContact { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InCity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InCity { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressPublicUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressPublicInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddrDelPubLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressLov")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressLov { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddrDelPubLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddrDelPubLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddress1 { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressLov")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressLov { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Street")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Street { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HouseNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HouseNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FlatNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FlatNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Community")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Community { get; set; } [System.Text.Json.Serialization.JsonPropertyName("District")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string District { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Protected { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddress1Update { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAddress1Insert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAll { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AlternativeName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AlternativeName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BirthName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BirthName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Alias")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Alias { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Protected")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Protected { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultDomain")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultDomain { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PictureThumbnailId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PictureThumbnailId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Inactive")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Inactive { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactCustomers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactCustomers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContactSuppliers")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContactSuppliers { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAllUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoAllInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRoleDbLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoleDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoleDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRoleDbLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ContactRoleDbLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTemplateLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTemplateLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTemplateLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustProspectTemplateLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustProspectTemplateLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustProspectTemplateLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiabilityLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxLiability")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxLiability { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiabilityLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxLiabilityLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBookLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxBookId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxBookId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NodeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NodeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NodeDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NodeDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxStructId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxStructId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("StructDescr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string StructDescr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxSeriesId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxSeriesId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBookLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxBookLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructureActive { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxCalcStructureId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxCalcStructureId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructureActiveUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCalcStructureActiveInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeRestricted { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeRestrictedUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeRestrictedInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeExemptRestricted { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FeeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FeeRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FeeRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidUntil")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidUntil { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Deductible")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Deductible { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxAmtLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? TaxAmtLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeExemptRestrictedUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxCodeExemptRestrictedInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryTypeLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DelivTypeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DelivTypeId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryTypeLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryTypeLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfo2 { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfo2Update { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfo2Insert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReasonLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InactiveReasonDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InactiveReasonDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReasonLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InactiveReasonLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonsPerCustomerLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Prefix")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Prefix { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BlockedForUse")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BlockedForUse { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonsPerCustomerLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonsPerCustomerLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2 { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenerateTraceInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GenerateTraceInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2Update { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2Insert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2Cu { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("WayId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string WayId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FormatDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FormatDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GenerateTraceInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GenerateTraceInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2CuUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayLov2CuInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoCust { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultLanguage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultLanguage { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoCustUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoCustInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplateLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CalculateInterest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CalculateInterest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinInterestAmountTotal")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinInterestAmountTotal { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercRate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercRate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExtraPercNoOfDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ExtraPercNoOfDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AcceptedDelay")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? AcceptedDelay { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplCust")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplCust { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultInterestTemplSup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? DefaultInterestTemplSup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PayTermId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PayTermId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseCommercialYear")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? UseCommercialYear { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestPercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InterestToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? InterestToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FinePercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FinePercent { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FineToleranceDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? FineToleranceDays { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReduceTolDays")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReduceTolDays { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplateLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InterestTemplateLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoNochild { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CorpCreditRelationExist")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CorpCreditRelationExist { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoNochildUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoNochildInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditNorelation { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditBlock")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditBlock { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NextReviewDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NextReviewDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditNorelationUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditNorelationInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class RepresentativeLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeTypeDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeTypeDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RepresentativeId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RepresentativeId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class RepresentativeLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class RepresentativeLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTermLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryTerms")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryTerms { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTermLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderDeliveryTermLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInfoContactLovPub { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAttribute")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string KeyAttribute { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPrimary")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CustomerPrimary { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInfoContactLovPubUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInfoContactLovPubInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCust1 { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ForwardAgentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ForwardAgentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustGrp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustGrp { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCust1Update { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCust1Insert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesmanLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesmanLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPartSalesmanLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class EdiApprovalUserLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class EdiApprovalUserLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class EdiApprovalUserLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinatorLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AuthorizeCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AuthorizeCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinatorLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OrderCoordinatorLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputTypeLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OutputType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OutputType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputTypeLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OutputTypeLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseTextLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseText { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhraseId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhraseId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RevisionNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RevisionNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhaseInDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhaseInDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PhaseOutDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PhaseOutDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseTextLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomPhraseTextLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentClassificationLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationStandard")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationStandard { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ClassificationDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ClassificationDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProcCategoryAssortment")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ProcCategoryAssortment { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentClassificationLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentClassificationLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSiteLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Contract")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Contract { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ContractDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ContractDesc { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSiteLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UserAllowedSiteLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesPriceGroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesPriceGroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CurrencyCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CurrencyCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OwningCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OwningCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PriceListNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PriceListNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidToDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidToDate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountryLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountryLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCountryLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCurrency_EntityType { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Id")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Id { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCurrency_EntityTypeUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCurrency_EntityTypeInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCountry_EntityType { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Id")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Id { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCountry_EntityTypeUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoCountry_EntityTypeInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoUnit_EntityType { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objgrants")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objgrants { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Id")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Id { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Description")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Description { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoUnit_EntityTypeUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Lookup_IsoUnit_EntityTypeInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssociationInfo { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssociationInfoUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssociationInfoInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeAddress { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidFrom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidFrom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ValidTo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ValidTo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeAddressUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeAddressInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoAndLeadLov { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CategoryDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CategoryDb { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoAndLeadLovUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoAndLeadLovInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeCustomer { [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreationDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreationDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultLanguage")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultLanguage { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Party")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Party { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SupParty")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SupParty { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeCustomerUpdate { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeCustomerInsert { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NotesInfoVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackageName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackageName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string KeyRef { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EntityName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EntityName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CallingProjectionName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CallingProjectionName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsNewNote")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IsNewNote { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteExists")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteExists { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ModifiedKeyRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ModifiedKeyRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NotesInfoVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackageName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackageName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EntityName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EntityName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CallingProjectionName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CallingProjectionName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsNewNote")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IsNewNote { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteExists")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteExists { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ModifiedKeyRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ModifiedKeyRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NotesInfoVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackageName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackageName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EntityName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EntityName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CallingProjectionName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CallingProjectionName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsNewNote")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IsNewNote { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteExists")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteExists { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ModifiedKeyRef")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ModifiedKeyRef { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FinNotesVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RowNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RowNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Timestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Timestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Text")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Text { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteSource { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Cleanup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Cleanup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FinNotesVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RowNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RowNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Timestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Timestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Text")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Text { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteSource { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Cleanup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Cleanup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FinNotesVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RowNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? RowNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Timestamp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Timestamp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Text")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Text { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteSource { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Cleanup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Cleanup { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParentCorporateRelationVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParentCorporateRelationVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParentCorporateRelationVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NoteTextVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReadOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReadOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Label")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Label { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NoteTextVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReadOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReadOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Label")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Label { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NoteTextVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReadOnly")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ReadOnly { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Label")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Label { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConectCustAssortmentVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ListMode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ListMode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuperParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuperParentObjkey { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConectCustAssortmentVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ListMode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ListMode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuperParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuperParentObjkey { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConectCustAssortmentVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ListMode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ListMode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SuperParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuperParentObjkey { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerListVirtual { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("luname")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Luname { get; set; } [System.Text.Json.Serialization.JsonPropertyName("keyref")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Keyref { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGroupSetting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGroupSetting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TemplateCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("QuicklyRegisteredCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? QuicklyRegisteredCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Currency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Currency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerStatisticGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerStatisticGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPriceGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerPriceGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditStop")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditStop { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CycleInterval")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CycleInterval { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateCreated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateCreated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastInvoiceDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastInvoiceDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderConfirmation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderConfirmation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BackorderOption")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BackorderOption { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingChangeRequest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingChangeRequest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiCoordinator")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiCoordinator { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CoTempateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CoTempateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevelName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyLevelName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerListVirtualUpdate { [System.Text.Json.Serialization.JsonPropertyName("Objkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Objmodified")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Objmodified { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGroupSetting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGroupSetting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TemplateCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("QuicklyRegisteredCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? QuicklyRegisteredCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Currency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Currency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerStatisticGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerStatisticGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPriceGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerPriceGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditStop")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditStop { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CycleInterval")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CycleInterval { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateCreated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateCreated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastInvoiceDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastInvoiceDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderConfirmation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderConfirmation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BackorderOption")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BackorderOption { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingChangeRequest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingChangeRequest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiCoordinator")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiCoordinator { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CoTempateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CoTempateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevelName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyLevelName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConnectCustomerListVirtualInsert { [System.Text.Json.Serialization.JsonPropertyName("ParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ObjCreatedBy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ObjCreatedBy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CommissionReceiver")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CommissionReceiver { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ConfirmDeliveries")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? ConfirmDeliveries { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CheckSalesGroupSetting")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CheckSalesGroupSetting { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InternalCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? InternalCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TemplateCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("QuicklyRegisteredCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? QuicklyRegisteredCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssortmentId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssortmentId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Currency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Currency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceCustomer")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceCustomer { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerStatisticGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerStatisticGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerPriceGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerPriceGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DiscountType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DiscountType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Discount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Discount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MinSalesAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? MinSalesAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CreditStop")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CreditStop { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Reference")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Reference { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CycleInterval")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CycleInterval { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DateCreated")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DateCreated { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ExpireDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ExpireDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("InvoiceType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InvoiceType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastInvoiceDate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastInvoiceDate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderConfirmation")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderConfirmation { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DeliveryNotes")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DeliveryNotes { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LanguageCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LanguageCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SalesmanCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SalesmanCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MarketCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MarketCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrintControlCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrintControlCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("BackorderOption")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string BackorderOption { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingOrder")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingOrder { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IncomingChangeRequest")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IncomingChangeRequest { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ApprovalUser")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ApprovalUser { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiCoordinator")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiCoordinator { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EdiSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EdiSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OrderType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OrderType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerSite")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerSite { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CoTempateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CoTempateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Hierarchy")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Hierarchy { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyDescription")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyDescription { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevel")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? HierarchyLevel { get; set; } [System.Text.Json.Serialization.JsonPropertyName("HierarchyLevelName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string HierarchyLevelName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Priority")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Priority { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreateCustomerContactActionImport { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CopyAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CopyAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Messenger")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Messenger { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreateCustomerContactActionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreateCustomerContactForExistPersonActionImport { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CopyAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CopyAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CheckDefaultCommMethodActionImport { [System.Text.Json.Serialization.JsonPropertyName("Init")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Init { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CopyExistingCustomerActionImport { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NewId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NewName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? NewCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CopyExistingCustomerActionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ChangeCustomerCategoryActionImport { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrevAssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrevAssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OverwriteOrderData")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OverwriteOrderData { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransferAddressRelatedInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TransferAddressRelatedInfo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? CustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ValidateTaxIdNumbersCheckVatServiceActionImport { [System.Text.Json.Serialization.JsonPropertyName("FullSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProjectionName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ProjectionName { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ValidateNoInvoiceCopiesActionImport { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PartyType { get; set; } [System.Text.Json.Serialization.JsonPropertyName("GroupId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string GroupId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrevNoCopies")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? PrevNoCopies { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ValidateNoInvoiceCopiesActionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UpdateItEinvoiceBasicDataActionImport { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceRecieverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceRecieverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CheckDefaultMethodActionImport { [System.Text.Json.Serialization.JsonPropertyName("Init")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Init { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetResultKeyListActionImport { [System.Text.Json.Serialization.JsonPropertyName("FullSelection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullSelection { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartBased")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PartBased { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetResultKeyListActionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AddSelectedCustomerActionImport { [System.Text.Json.Serialization.JsonPropertyName("SuperParentObjkey")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string SuperParentObjkey { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Selection")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Selection { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CheckDefaultAddressTypeActionImport { [System.Text.Json.Serialization.JsonPropertyName("Init")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Init { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CheckPersonExistsFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssociationNoExistFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FetchDefaultCompanyFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TempCustomerInfoFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FetchCountryCodeFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class RoundAccCurrencyAmountFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class RoundCurrencyAmountFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeForCreditAnalystCodeFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetChildRelationshipCountFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetDefaultRepRoleFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetCustGrpDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetCustPriceGroupDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetMarketCodeDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetDiscountTypeDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetCreditControlGroupDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CheckCommReceiverExistFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetUsePriceInclTaxOrdFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetExternalTaxCalMethodFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsPriceGroupTypePartBasedFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CalculateChargeAmountFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetNameFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetDescriptionsFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class GetDescription3FunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SubjectKeyRefFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DefaultEndCustAddrIdFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FetchCountryDescriptionFunctionImportResponse { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UpdateReminderTemplateAction { [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class UpdatePreferredPriceListAction { [System.Text.Json.Serialization.JsonPropertyName("PreferdPreceList")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PreferdPreceList { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCustInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CrmCustInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdCustomer ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAssortmentStructCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerAssortmentStruct ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPrjrepParamsCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerPrjrepParams ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public TaxIdType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CurrencyType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommMethodCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CommMethod ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesChargeType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSalesPriceCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ProjectSalesPrice ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeliveryRouteCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DeliveryRoute ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CurrencyCodeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CurrencyCode ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfirmationStmntTemplCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ConfirmationStmntTempl ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ArContactCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ArContact ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectSupplierMarginCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ProjectSupplierMargin ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyPayInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CompanyPayInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceReasonCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoiceReason ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustPriceGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustPriceGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkTimeCalendarCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public WorkTimeCalendar ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardTravExpMarginCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StandardTravExpMargin ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FndUserCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FndUser ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SiteCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public Site ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesMarketCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesMarket ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesPriceGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdPrintControlCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdPrintControl ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ForwarderInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ForwarderInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PersonInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PersonInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ReminderTemplateCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ReminderTemplate ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesPriceListCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesPriceList ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDistrictCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesDistrict ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePropertyCodeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoicePropertyCode ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IsoCurrencyCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IsoCurrency ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ShipmentTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public ShipmentType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyLevelCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerHierarchyLevel ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInvoiceInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CompanyInvoiceInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MessageTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MessageType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoicePartyTypeGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoicePartyTypeGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class InvoiceNumerationGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public InvoiceNumerationGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerOrderTemplateCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerOrderTemplate ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CommissionReceiverCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CommissionReceiver ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StandardMatWithMarginCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StandardMatWithMargin ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StatutoryFeeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public StatutoryFee ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerHierarchyCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerHierarchy ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesRegionCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesRegion ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DeductionGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DeductionGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AssortmentStructureCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public AssortmentStructure ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesChargeGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesChargeGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentTermCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentTerm ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MpccomShipViaCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MpccomShipVia ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrderTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrderType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusinessLeadCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public BusinessLead ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SalesDiscountTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public SalesDiscountType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditControlGroupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditControlGroup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryTaxInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDeliveryTaxInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDeliveryFeeCodeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDeliveryFeeCode ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxFreeTaxCodeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxFreeTaxCode ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDelTaxExemptCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDelTaxExempt ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerDocumentTaxInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerDocumentTaxInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerAddrTaxNumberCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerAddrTaxNumber ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class JsCustomerInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public JsCustomerInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityInvoiceInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IdentityInvoiceInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PartyTypeIdPropertyCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PartyTypeIdProperty ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInvMsgSetupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInvMsgSetup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public IdentityPayInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentWayPerIdentityCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentWayPerIdentity ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class PaymentAddressCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public PaymentAddress ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerCreditInfoCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerCreditInfo ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditAnalystCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditAnalyst ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CreditRelationshipCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CreditRelationship ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class BusObjectRepresentativeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public BusObjectRepresentative ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CrmCompanyRelationCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CrmCompanyRelation ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustOrdCustomerAddressCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustOrdCustomerAddress ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DocumentTextCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public DocumentText ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerTaxCalcBasisCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerTaxCalcBasis ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustInvoiceCloseDateCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustInvoiceCloseDate ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class MultipleRebateCriteriaCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public MultipleRebateCriteria ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerPricelistCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerPricelist ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustDefComReceiverCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustDefComReceiver ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerChargeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerCharge ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerAccountCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtCustomerAccount ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoAddress ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtThirdPartyPayerCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtThirdPartyPayer ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoOurIdCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoOurId ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoContactCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoContact ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoMsgSetupCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoMsgSetup ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerInfoAddressTypeCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public CustomerInfoAddressType ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FrtCustomerInfoAddressCopyValues { [System.Text.Json.Serialization.JsonPropertyName("ModifiedSource")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public FrtCustomerInfoAddress ModifiedSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FullNameStructure { [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ExistingPersonInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Messenger")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Messenger { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomerContactStructure { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FullName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FullName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("FirstName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FirstName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MiddleName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MiddleName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("LastName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string LastName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Initials")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Initials { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Messenger")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Messenger { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AddressId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AddressId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CopyAddress")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? CopyAddress { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonExists")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? PersonExists { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewPerson")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? NewPerson { get; set; } [System.Text.Json.Serialization.JsonPropertyName("RoleDb")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string RoleDb { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Role")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Role { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteText")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NoteText { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CopyCustomerDialogStructure { [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Name")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Name { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Category")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Category { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewIdentity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NewIdentity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NewName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewAssocNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string NewAssocNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewCustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? NewCustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ChangeCustomerCategoryStructure { [System.Text.Json.Serialization.JsonPropertyName("CustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefaultCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefaultCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TempCustomerId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TempCustomerId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TempCustomerName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TempCustomerName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TempCompany")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TempCompany { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TempOverwriteOrderData")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TempOverwriteOrderData { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TempTransOrdAddrTemp")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TempTransOrdAddrTemp { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PrevAssociationNo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PrevAssociationNo { get; set; } [System.Text.Json.Serialization.JsonPropertyName("SourceCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? SourceCategory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NewCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? NewCategory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ProspectCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategoryProspect_Enumeration? ProspectCategory { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategoryEndCustomer_Enumeration? EndCustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyOrderInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("OverwriteOrderData")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? OverwriteOrderData { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TransferAddressRelatedInfo")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public bool? TransferAddressRelatedInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyDefaultsStructure { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledLccParams")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnabledLccParams { get; set; } [System.Text.Json.Serialization.JsonPropertyName("UseSpecificRates")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UseSpecificRates { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TaxIdNumberValidationResultsStructure { [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersWithInvalidCharacters")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersWithInvalidCharacters { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersWithNoCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersWithNoCountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersWithNotEuCountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersWithNotEuCountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersInvalid")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersInvalid { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersItInvalid1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersItInvalid1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersItInvalid2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersItInvalid2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgTaxIdNumbersItInvalid3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgTaxIdNumbersItInvalid3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MsgNetworkError")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MsgNetworkError { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class NotesInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("UserId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string UserId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("NoteId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? NoteId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PackageName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PackageName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CallingProjectionName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CallingProjectionName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("IsNewNote")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string IsNewNote { get; set; } [System.Text.Json.Serialization.JsonPropertyName("KeyAttr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string KeyAttr { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Title")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Title { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CompanyInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("CountryCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("DefCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string DefCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("AccCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string AccCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EmuCurrency")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EmuCurrency { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EnabledLccParams")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EnabledLccParams { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ItalyEinvoiceBasicDataStructure { [System.Text.Json.Serialization.JsonPropertyName("Company")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Company { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EinvoiceReceiverCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string EinvoiceReceiverCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Identity")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Identity { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PersonId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string PersonId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CertifiedEmail")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CertifiedEmail { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TaxRepresentative")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TaxRepresentative { get; set; } [System.Text.Json.Serialization.JsonPropertyName("PartyType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public PartyType_Enumeration? PartyType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IdentityPayInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("InterestTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string InterestTemplate { get; set; } [System.Text.Json.Serialization.JsonPropertyName("TemplateId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string TemplateId { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ReminderTemplate")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ReminderTemplate { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class OtherPayeeStructure { [System.Text.Json.Serialization.JsonPropertyName("OtherPayerDeductionGroup")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerDeductionGroup { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayerDeductionGroupDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerDeductionGroupDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("OtherPayerCorporationId")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OtherPayerCorporationId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SpecifyCreditLimitStructure { [System.Text.Json.Serialization.JsonPropertyName("CreditLimit")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? CreditLimit { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ChargeDefaultsSturucture { [System.Text.Json.Serialization.JsonPropertyName("ChargeAmount")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmount { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeAmountInclTax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeAmountInclTax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Charge")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? Charge { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCost")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCost { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ChargeCostPercent")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public double? ChargeCostPercent { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class DefaultContactInfoStructure { [System.Text.Json.Serialization.JsonPropertyName("Phone")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Phone { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Mobile")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Mobile { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Email")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Email { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Fax")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Fax { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Pager")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Pager { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Intercom")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Intercom { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Www")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Www { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AdressDetailsStructure { [System.Text.Json.Serialization.JsonPropertyName("Address1")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address1 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address2")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address2 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address3")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address3 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address4")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address4 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address5")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address5 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Address6")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Address6 { get; set; } [System.Text.Json.Serialization.JsonPropertyName("ZipCode")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string ZipCode { get; set; } [System.Text.Json.Serialization.JsonPropertyName("City")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string City { get; set; } [System.Text.Json.Serialization.JsonPropertyName("State")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string State { get; set; } [System.Text.Json.Serialization.JsonPropertyName("County")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string County { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Country")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Country { get; set; } [System.Text.Json.Serialization.JsonPropertyName("CountryDesc")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string CountryDesc { get; set; } [System.Text.Json.Serialization.JsonPropertyName("EndCustomerCategory")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))] public CustomerCategory_Enumeration? EndCustomerCategory { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StreamInfoRec { [System.Text.Json.Serialization.JsonPropertyName("FileName")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string FileName { get; set; } [System.Text.Json.Serialization.JsonPropertyName("MimeType")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string MimeType { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class EntityDec { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Info")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Info { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Attr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Attr { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfigEntityDec { [System.Text.Json.Serialization.JsonPropertyName("@odata.etag")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string OdataEtag { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Info")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Info { get; set; } [System.Text.Json.Serialization.JsonPropertyName("Attr")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Attr { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessMailRefType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessActivity")] BusinessActivity = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessOpportunity")] BusinessOpportunity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 2, [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 3, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadContact")] BusinessLeadContact = 4, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 6, [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 7, [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 8, [System.Runtime.Serialization.EnumMember(Value = @"NotReferenced")] NotReferenced = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessMailRefTypeCrmRefType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessActivity")] BusinessActivity = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessOpportunity")] BusinessOpportunity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 2, [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 3, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadContact")] BusinessLeadContact = 4, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 5, [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 6, [System.Runtime.Serialization.EnumMember(Value = @"NotReferenced")] NotReferenced = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessMailRefTypeSrmRefType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessActivity")] BusinessActivity = 0, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 1, [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 2, [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 3, [System.Runtime.Serialization.EnumMember(Value = @"NotReferenced")] NotReferenced = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessMailRefTypeNoRefType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotReferenced")] NotReferenced = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum EuMember_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"EUMember")] EUMember = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotEUMember")] NotEUMember = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum UserSiteType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"DefaultSite")] DefaultSite = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotDefaultSite")] NotDefaultSite = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ShipmentPayer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Sender")] Sender = 0, [System.Runtime.Serialization.EnumMember(Value = @"Receiver")] Receiver = 1, [System.Runtime.Serialization.EnumMember(Value = @"Other")] Other = 2, [System.Runtime.Serialization.EnumMember(Value = @"NotSpecified")] NotSpecified = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PayInterestMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"SimpleInterest")] SimpleInterest = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompoundInterest")] CompoundInterest = 1, [System.Runtime.Serialization.EnumMember(Value = @"Mixed")] Mixed = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum InterestMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"WhenFullyPaid")] WhenFullyPaid = 0, [System.Runtime.Serialization.EnumMember(Value = @"WhenDueForPayment")] WhenDueForPayment = 1, [System.Runtime.Serialization.EnumMember(Value = @"WhenPartlyPaid")] WhenPartlyPaid = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ValidateOption_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Yes")] Yes = 0, [System.Runtime.Serialization.EnumMember(Value = @"No")] No = 1, [System.Runtime.Serialization.EnumMember(Value = @"Optional")] Optional = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxBookBaseValues_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"All")] All = 0, [System.Runtime.Serialization.EnumMember(Value = @"Restricted")] Restricted = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxBookBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSeries")] InvoiceSeries = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxBookBaseDefault_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSeries")] InvoiceSeries = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxBookBaseSubTaxBookBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxDirectionSp_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Received")] Received = 0, [System.Runtime.Serialization.EnumMember(Value = @"Disbursed")] Disbursed = 1, [System.Runtime.Serialization.EnumMember(Value = @"DisbursedReceived")] DisbursedReceived = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxLiabilityType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 0, [System.Runtime.Serialization.EnumMember(Value = @"Exempt")] Exempt = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum AddressTypeCode_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Delivery")] Delivery = 0, [System.Runtime.Serialization.EnumMember(Value = @"Document")] Document = 1, [System.Runtime.Serialization.EnumMember(Value = @"Visit")] Visit = 2, [System.Runtime.Serialization.EnumMember(Value = @"Pay")] Pay = 3, [System.Runtime.Serialization.EnumMember(Value = @"Home")] Home = 4, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 5, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 6, [System.Runtime.Serialization.EnumMember(Value = @"Correspondence")] Correspondence = 7, [System.Runtime.Serialization.EnumMember(Value = @"Residence")] Residence = 8, [System.Runtime.Serialization.EnumMember(Value = @"Tax")] Tax = 9, [System.Runtime.Serialization.EnumMember(Value = @"Work")] Work = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PreferredPriceList_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Preferred")] Preferred = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotPreferred")] NotPreferred = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum AgreementSelection_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"AgreementPriority")] AgreementPriority = 0, [System.Runtime.Serialization.EnumMember(Value = @"MultipleAgreements")] MultipleAgreements = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum IntrastatExempt_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Include")] Include = 0, [System.Runtime.Serialization.EnumMember(Value = @"Exempt")] Exempt = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessOpportunity")] BusinessOpportunity = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerOrder")] CustomerOrder = 1, [System.Runtime.Serialization.EnumMember(Value = @"SalesQuotation")] SalesQuotation = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessActivity")] BusinessActivity = 3, [System.Runtime.Serialization.EnumMember(Value = @"ServiceQuotation")] ServiceQuotation = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketingCampaign")] MarketingCampaign = 5, [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 6, [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 7, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 8, [System.Runtime.Serialization.EnumMember(Value = @"SalesContract")] SalesContract = 9, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 10, [System.Runtime.Serialization.EnumMember(Value = @"BusinessMail")] BusinessMail = 11, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"ReqForOrdQuote")] ReqForOrdQuote = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReqForAgrQuote")] ReqForAgrQuote = 14, [System.Runtime.Serialization.EnumMember(Value = @"SupplierAgreement")] SupplierAgreement = 15, [System.Runtime.Serialization.EnumMember(Value = @"Estimate")] Estimate = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadContact")] BusinessLeadContact = 17, [System.Runtime.Serialization.EnumMember(Value = @"Representative")] Representative = 18, [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 19, [System.Runtime.Serialization.EnumMember(Value = @"NotReferenced")] NotReferenced = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeCustomerLead_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeCrmConnType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeSrmConnType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeRmConnType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 1, [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeCrmProc_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessOpportunity")] BusinessOpportunity = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeCustomer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessObjectTypeRmProcConnected_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"BusinessActivity")] BusinessActivity = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerOrder")] CustomerOrder = 1, [System.Runtime.Serialization.EnumMember(Value = @"SalesContract")] SalesContract = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesQuotation")] SalesQuotation = 3, [System.Runtime.Serialization.EnumMember(Value = @"ServiceQuotation")] ServiceQuotation = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Position_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalyst")] CreditAnalyst = 0, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CreditRelationshipType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Parent")] Parent = 0, [System.Runtime.Serialization.EnumMember(Value = @"Child")] Child = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ParallelBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"TransactionCurrency")] TransactionCurrency = 0, [System.Runtime.Serialization.EnumMember(Value = @"AccountingCurrency")] AccountingCurrency = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PeriodClosingMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Reversible")] Reversible = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotReversible")] NotReversible = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum DefAmountMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"GrossAmountEntry")] GrossAmountEntry = 0, [System.Runtime.Serialization.EnumMember(Value = @"NetAmountEntry")] NetAmountEntry = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CorrectionType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Reverse")] Reverse = 0, [System.Runtime.Serialization.EnumMember(Value = @"Correction")] Correction = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum OutputMediaType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Printout")] Printout = 0, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 1, [System.Runtime.Serialization.EnumMember(Value = @"MailToFax")] MailToFax = 2, [System.Runtime.Serialization.EnumMember(Value = @"Xml")] Xml = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CheckRecipient_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Payee")] Payee = 0, [System.Runtime.Serialization.EnumMember(Value = @"PaymentInstitute")] PaymentInstitute = 1, [System.Runtime.Serialization.EnumMember(Value = @"Cash")] Cash = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PaymentReceiptType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoReceipt")] NoReceipt = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtPayment")] AtPayment = 1, [System.Runtime.Serialization.EnumMember(Value = @"AtMatching")] AtMatching = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PaymentAdvice_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAdvice")] NoAdvice = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtCreateOrder")] AtCreateOrder = 1, [System.Runtime.Serialization.EnumMember(Value = @"DependingOnFormat")] DependingOnFormat = 2, [System.Runtime.Serialization.EnumMember(Value = @"AtProposal")] AtProposal = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PaymentAdviceDefault_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAdvice")] NoAdvice = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtCreateOrder")] AtCreateOrder = 1, [System.Runtime.Serialization.EnumMember(Value = @"DependingOnFormat")] DependingOnFormat = 2, [System.Runtime.Serialization.EnumMember(Value = @"AtProposal")] AtProposal = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PaymentAdviceSupp_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAdvice")] NoAdvice = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtCreateOrder")] AtCreateOrder = 1, [System.Runtime.Serialization.EnumMember(Value = @"DependingOnFormat")] DependingOnFormat = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum NlsCalendar_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Gregorian")] Gregorian = 0, [System.Runtime.Serialization.EnumMember(Value = @"Persian")] Persian = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum LanguageCodeStatus_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Passive")] Passive = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TransferOptionEnabled_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"True")] True = 0, [System.Runtime.Serialization.EnumMember(Value = @"False")] False = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum InvoiceRecipientFrom_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 0, [System.Runtime.Serialization.EnumMember(Value = @"File")] File = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PoRefRecRefValMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRef")] PoRefRecRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"PoRef")] PoRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"RecRef")] RecRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum AutoPayAuthorization_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"No")] No = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtFinalPosting")] AtFinalPosting = 1, [System.Runtime.Serialization.EnumMember(Value = @"WhenPosted")] WhenPosted = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxCertificateForm_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NotUsed")] NotUsed = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxForm03")] TaxForm03 = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxForm53")] TaxForm53 = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MatchingLevel_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"POHeader")] POHeader = 0, [System.Runtime.Serialization.EnumMember(Value = @"POReceipt")] POReceipt = 1, [System.Runtime.Serialization.EnumMember(Value = @"POLine")] POLine = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MatchingLevelNonPoLine_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"POHeader")] POHeader = 0, [System.Runtime.Serialization.EnumMember(Value = @"POReceipt")] POReceipt = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ReportAndWithhold_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 0, [System.Runtime.Serialization.EnumMember(Value = @"ReportIncome")] ReportIncome = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReportIncomeWithholdTax")] ReportIncomeWithholdTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum IdentityType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"External")] External = 0, [System.Runtime.Serialization.EnumMember(Value = @"Internal")] Internal = 1, [System.Runtime.Serialization.EnumMember(Value = @"InternalParent")] InternalParent = 2, [System.Runtime.Serialization.EnumMember(Value = @"InternalSister")] InternalSister = 3, [System.Runtime.Serialization.EnumMember(Value = @"InternalSub")] InternalSub = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum IdentityTypeDefault_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"External")] External = 0, [System.Runtime.Serialization.EnumMember(Value = @"Internal")] Internal = 1, [System.Runtime.Serialization.EnumMember(Value = @"InternalParent")] InternalParent = 2, [System.Runtime.Serialization.EnumMember(Value = @"InternalSister")] InternalSister = 3, [System.Runtime.Serialization.EnumMember(Value = @"InternalSub")] InternalSub = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum IdentityTypeSraIdentityType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"External")] External = 0, [System.Runtime.Serialization.EnumMember(Value = @"InternalParent")] InternalParent = 1, [System.Runtime.Serialization.EnumMember(Value = @"InternalSister")] InternalSister = 2, [System.Runtime.Serialization.EnumMember(Value = @"InternalSub")] InternalSub = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum VirInvCrtMethodType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Collective")] Collective = 0, [System.Runtime.Serialization.EnumMember(Value = @"Seperate")] Seperate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ExemptCertificateType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"SingleCertificate")] SingleCertificate = 0, [System.Runtime.Serialization.EnumMember(Value = @"BlanketCertificate")] BlanketCertificate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum WithholdingBaseAmount_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceNetAmount")] InvoiceNetAmount = 0, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceGrossAmount")] InvoiceGrossAmount = 1, [System.Runtime.Serialization.EnumMember(Value = @"ActualPaidAmount")] ActualPaidAmount = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum WithholdingBaseAmountWithoutGross_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceNetAmount")] InvoiceNetAmount = 0, [System.Runtime.Serialization.EnumMember(Value = @"ActualPaidAmount")] ActualPaidAmount = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxRoundingLevel_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"LineLevel")] LineLevel = 0, [System.Runtime.Serialization.EnumMember(Value = @"TotalLevel")] TotalLevel = 1, [System.Runtime.Serialization.EnumMember(Value = @"SpecifiedOnCompany")] SpecifiedOnCompany = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxRoundingLevelWithoutCompany_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"LineLevel")] LineLevel = 0, [System.Runtime.Serialization.EnumMember(Value = @"TotalLevel")] TotalLevel = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxRoundingMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"RoundUp")] RoundUp = 0, [System.Runtime.Serialization.EnumMember(Value = @"RoundToTheNearest")] RoundToTheNearest = 1, [System.Runtime.Serialization.EnumMember(Value = @"RoundDown")] RoundDown = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustTaxWithhold_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithhold")] TaxWithhold = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustOrdReservationType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PriorityReservation")] PriorityReservation = 0, [System.Runtime.Serialization.EnumMember(Value = @"NormalReservation")] NormalReservation = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PickInventoryType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ShipmentInventory")] ShipmentInventory = 0, [System.Runtime.Serialization.EnumMember(Value = @"OrdinaryInventory")] OrdinaryInventory = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ModeOfTransport_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"SeaTransport")] SeaTransport = 0, [System.Runtime.Serialization.EnumMember(Value = @"RailTransport")] RailTransport = 1, [System.Runtime.Serialization.EnumMember(Value = @"RoadTransport")] RoadTransport = 2, [System.Runtime.Serialization.EnumMember(Value = @"AirTransport")] AirTransport = 3, [System.Runtime.Serialization.EnumMember(Value = @"PostalConsignment")] PostalConsignment = 4, [System.Runtime.Serialization.EnumMember(Value = @"FixedTransport")] FixedTransport = 5, [System.Runtime.Serialization.EnumMember(Value = @"InlandWaterway")] InlandWaterway = 6, [System.Runtime.Serialization.EnumMember(Value = @"OwnPropulsion")] OwnPropulsion = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum VatDistribution_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Even")] Even = 0, [System.Runtime.Serialization.EnumMember(Value = @"AllTaxOnFirstInstment")] AllTaxOnFirstInstment = 1, [System.Runtime.Serialization.EnumMember(Value = @"FirstInstallmentOnlyTax")] FirstInstallmentOnlyTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxCharacter_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Normal")] Normal = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxFree")] TaxFree = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoTax")] NoTax = 2, [System.Runtime.Serialization.EnumMember(Value = @"Export")] Export = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxFactor_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Tasa")] Tasa = 0, [System.Runtime.Serialization.EnumMember(Value = @"Cuota")] Cuota = 1, [System.Runtime.Serialization.EnumMember(Value = @"Exento")] Exento = 2, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxFactorMxTaxFactor_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Tasa")] Tasa = 0, [System.Runtime.Serialization.EnumMember(Value = @"Cuota")] Cuota = 1, [System.Runtime.Serialization.EnumMember(Value = @"Exento")] Exento = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum DiotTaxClassification_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 0, [System.Runtime.Serialization.EnumMember(Value = @"Iva")] Iva = 1, [System.Runtime.Serialization.EnumMember(Value = @"IvaNotCreditable")] IvaNotCreditable = 2, [System.Runtime.Serialization.EnumMember(Value = @"IvaWithholding")] IvaWithholding = 3, [System.Runtime.Serialization.EnumMember(Value = @"IvaImport")] IvaImport = 4, [System.Runtime.Serialization.EnumMember(Value = @"NorthRegionBorder")] NorthRegionBorder = 5, [System.Runtime.Serialization.EnumMember(Value = @"ImportNotCreditable")] ImportNotCreditable = 6, [System.Runtime.Serialization.EnumMember(Value = @"ImportExempt")] ImportExempt = 7, [System.Runtime.Serialization.EnumMember(Value = @"Exempt")] Exempt = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SiiOperationType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Goods")] Goods = 0, [System.Runtime.Serialization.EnumMember(Value = @"Services")] Services = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SiiTaxLiabilityClass_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"S1")] S1 = 0, [System.Runtime.Serialization.EnumMember(Value = @"S2")] S2 = 1, [System.Runtime.Serialization.EnumMember(Value = @"S3")] S3 = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxTypeCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Icms")] Icms = 0, [System.Runtime.Serialization.EnumMember(Value = @"Iss")] Iss = 1, [System.Runtime.Serialization.EnumMember(Value = @"Pis")] Pis = 2, [System.Runtime.Serialization.EnumMember(Value = @"Cofins")] Cofins = 3, [System.Runtime.Serialization.EnumMember(Value = @"Ipi")] Ipi = 4, [System.Runtime.Serialization.EnumMember(Value = @"IcmsSt")] IcmsSt = 5, [System.Runtime.Serialization.EnumMember(Value = @"Isr")] Isr = 6, [System.Runtime.Serialization.EnumMember(Value = @"Iva")] Iva = 7, [System.Runtime.Serialization.EnumMember(Value = @"Ieps")] Ieps = 8, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxTypeCategoryBrTaxTypeCtgry_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Icms")] Icms = 0, [System.Runtime.Serialization.EnumMember(Value = @"Iss")] Iss = 1, [System.Runtime.Serialization.EnumMember(Value = @"Pis")] Pis = 2, [System.Runtime.Serialization.EnumMember(Value = @"Cofins")] Cofins = 3, [System.Runtime.Serialization.EnumMember(Value = @"Ipi")] Ipi = 4, [System.Runtime.Serialization.EnumMember(Value = @"IcmsSt")] IcmsSt = 5, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxTypeCategoryMxTaxTypeCtgry_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Isr")] Isr = 0, [System.Runtime.Serialization.EnumMember(Value = @"Iva")] Iva = 1, [System.Runtime.Serialization.EnumMember(Value = @"Ieps")] Ieps = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxReportingCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 0, [System.Runtime.Serialization.EnumMember(Value = @"EuServices")] EuServices = 1, [System.Runtime.Serialization.EnumMember(Value = @"TripartiteEuTrade")] TripartiteEuTrade = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxAmountAtInvPrint_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"IncludeInPrice")] IncludeInPrice = 0, [System.Runtime.Serialization.EnumMember(Value = @"SeparateFromPrice")] SeparateFromPrice = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum VatMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceEntry")] InvoiceEntry = 0, [System.Runtime.Serialization.EnumMember(Value = @"FinalPosting")] FinalPosting = 1, [System.Runtime.Serialization.EnumMember(Value = @"Payment")] Payment = 2, [System.Runtime.Serialization.EnumMember(Value = @"NoTax")] NoTax = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum VatMethodTaxDisbursed_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceEntry")] InvoiceEntry = 0, [System.Runtime.Serialization.EnumMember(Value = @"Payment")] Payment = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoTax")] NoTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum FeeType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Tax")] Tax = 0, [System.Runtime.Serialization.EnumMember(Value = @"CalculatedTax")] CalculatedTax = 1, [System.Runtime.Serialization.EnumMember(Value = @"UseTax")] UseTax = 2, [System.Runtime.Serialization.EnumMember(Value = @"NoTax")] NoTax = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithhold")] TaxWithhold = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CalculationPeriod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Month")] Month = 0, [System.Runtime.Serialization.EnumMember(Value = @"Quarter")] Quarter = 1, [System.Runtime.Serialization.EnumMember(Value = @"HalfYear")] HalfYear = 2, [System.Runtime.Serialization.EnumMember(Value = @"Year")] Year = 3, [System.Runtime.Serialization.EnumMember(Value = @"NotApplicable")] NotApplicable = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum GenerateOfficialInvNo_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"AtPrelInvoice")] AtPrelInvoice = 0, [System.Runtime.Serialization.EnumMember(Value = @"AtFinalInvoice")] AtFinalInvoice = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BaseDate_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"VoucherDate")] VoucherDate = 0, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceDate")] InvoiceDate = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryDate")] DeliveryDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomsDeclDate")] CustomsDeclDate = 3, [System.Runtime.Serialization.EnumMember(Value = @"SpecifiedOnCompany")] SpecifiedOnCompany = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BaseDateIncomingBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"VoucherDate")] VoucherDate = 0, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceDate")] InvoiceDate = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomsDeclDate")] CustomsDeclDate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BaseDateOutgoingBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceDate")] InvoiceDate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryDate")] DeliveryDate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BaseDateOutgoingCustBase_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceDate")] InvoiceDate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryDate")] DeliveryDate = 1, [System.Runtime.Serialization.EnumMember(Value = @"SpecifiedOnCompany")] SpecifiedOnCompany = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SuppInvNoUniqueness_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 0, [System.Runtime.Serialization.EnumMember(Value = @"SupplierAndInvSeries")] SupplierAndInvSeries = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum AuthorizationLevel_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ManualAuthorization")] ManualAuthorization = 0, [System.Runtime.Serialization.EnumMember(Value = @"ManualAuthWhenTolMatch")] ManualAuthWhenTolMatch = 1, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticAuthorization")] AutomaticAuthorization = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum NcfReferenceMethodSupp_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NotUsed")] NotUsed = 0, [System.Runtime.Serialization.EnumMember(Value = @"Used")] Used = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum NcfReferenceMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NotUsed")] NotUsed = 0, [System.Runtime.Serialization.EnumMember(Value = @"NorwegianModula10")] NorwegianModula10 = 1, [System.Runtime.Serialization.EnumMember(Value = @"NorwegianModula11")] NorwegianModula11 = 2, [System.Runtime.Serialization.EnumMember(Value = @"RFFinnishModula10")] RFFinnishModula10 = 3, [System.Runtime.Serialization.EnumMember(Value = @"SwedishBankgiro")] SwedishBankgiro = 4, [System.Runtime.Serialization.EnumMember(Value = @"SwedishPostgiro")] SwedishPostgiro = 5, [System.Runtime.Serialization.EnumMember(Value = @"DanishModula10")] DanishModula10 = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChineseJinsuiInterface")] ChineseJinsuiInterface = 7, [System.Runtime.Serialization.EnumMember(Value = @"Swiss16Modula10")] Swiss16Modula10 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Swiss27Modula10")] Swiss27Modula10 = 9, [System.Runtime.Serialization.EnumMember(Value = @"RFCreditorReference")] RFCreditorReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"CzechPaymentReference")] CzechPaymentReference = 11, [System.Runtime.Serialization.EnumMember(Value = @"BrazilianBoleto")] BrazilianBoleto = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum NcfReferenceMethodWithoutJinsui_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NotUsed")] NotUsed = 0, [System.Runtime.Serialization.EnumMember(Value = @"NorwegianModula10")] NorwegianModula10 = 1, [System.Runtime.Serialization.EnumMember(Value = @"NorwegianModula11")] NorwegianModula11 = 2, [System.Runtime.Serialization.EnumMember(Value = @"RFFinnishModula10")] RFFinnishModula10 = 3, [System.Runtime.Serialization.EnumMember(Value = @"SwedishBankgiro")] SwedishBankgiro = 4, [System.Runtime.Serialization.EnumMember(Value = @"SwedishPostgiro")] SwedishPostgiro = 5, [System.Runtime.Serialization.EnumMember(Value = @"DanishModula10")] DanishModula10 = 6, [System.Runtime.Serialization.EnumMember(Value = @"Swiss16Modula10")] Swiss16Modula10 = 7, [System.Runtime.Serialization.EnumMember(Value = @"Swiss27Modula10")] Swiss27Modula10 = 8, [System.Runtime.Serialization.EnumMember(Value = @"RFCreditorReference")] RFCreditorReference = 9, [System.Runtime.Serialization.EnumMember(Value = @"CzechPaymentReference")] CzechPaymentReference = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum NcfReferenceMethodWithDtachcu_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Swiss16Modula10")] Swiss16Modula10 = 0, [System.Runtime.Serialization.EnumMember(Value = @"Swiss27Modula10")] Swiss27Modula10 = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum OrdCompNotEqualComp_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"MatchAllComp")] MatchAllComp = 0, [System.Runtime.Serialization.EnumMember(Value = @"MthPOLneSWthCompCor")] MthPOLneSWthCompCor = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum InvSuppNotEqualSupp_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"MatchAll")] MatchAll = 0, [System.Runtime.Serialization.EnumMember(Value = @"GiveWarning")] GiveWarning = 1, [System.Runtime.Serialization.EnumMember(Value = @"MthPOLneSWthSupCor")] MthPOLneSWthSupCor = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BasePlannedPayDate_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PayTermBaseDate")] PayTermBaseDate = 0, [System.Runtime.Serialization.EnumMember(Value = @"ArrivalDate")] ArrivalDate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ShipmentCreation_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAutomatic")] NoAutomatic = 0, [System.Runtime.Serialization.EnumMember(Value = @"OrderRelease")] OrderRelease = 1, [System.Runtime.Serialization.EnumMember(Value = @"PickListCreation")] PickListCreation = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ShipmentCreationShipmentOrder_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAutomatic")] NoAutomatic = 0, [System.Runtime.Serialization.EnumMember(Value = @"OrderRelease")] OrderRelease = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CollectionIdentity_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 0, [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 1, [System.Runtime.Serialization.EnumMember(Value = @"AdditionalReference")] AdditionalReference = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesPriceGroupType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PartBased")] PartBased = 0, [System.Runtime.Serialization.EnumMember(Value = @"UnitBased")] UnitBased = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum FndUserType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"SystemUser")] SystemUser = 0, [System.Runtime.Serialization.EnumMember(Value = @"ServiceUser")] ServiceUser = 1, [System.Runtime.Serialization.EnumMember(Value = @"EndUser")] EndUser = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum FndUserTypeUsersSubset_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ServiceUser")] ServiceUser = 0, [System.Runtime.Serialization.EnumMember(Value = @"EndUser")] EndUser = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum InterestDocumentType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Invoice")] Invoice = 0, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum DissolveMethodType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Cost")] Cost = 0, [System.Runtime.Serialization.EnumMember(Value = @"Revenue")] Revenue = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum RepostingMethodType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Reverse")] Reverse = 0, [System.Runtime.Serialization.EnumMember(Value = @"Correction")] Correction = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MixedPaymentRecalcType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"RecalculateInvoiceAmount")] RecalculateInvoiceAmount = 0, [System.Runtime.Serialization.EnumMember(Value = @"RecalculateCurrencyRate")] RecalculateCurrencyRate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PaymentPostingMethod_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Net")] Net = 0, [System.Runtime.Serialization.EnumMember(Value = @"Gross")] Gross = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesChgTypeCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PackSize")] PackSize = 0, [System.Runtime.Serialization.EnumMember(Value = @"Freight")] Freight = 1, [System.Runtime.Serialization.EnumMember(Value = @"Promotion")] Promotion = 2, [System.Runtime.Serialization.EnumMember(Value = @"Other")] Other = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PrintCollectCharge_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Print")] Print = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoPrint")] NoPrint = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CommMethodCode_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 0, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 1, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 2, [System.Runtime.Serialization.EnumMember(Value = @"Faxserver")] Faxserver = 3, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 4, [System.Runtime.Serialization.EnumMember(Value = @"EMail")] EMail = 5, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 6, [System.Runtime.Serialization.EnumMember(Value = @"Messenger")] Messenger = 7, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CurrRateTypeCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Normal")] Normal = 0, [System.Runtime.Serialization.EnumMember(Value = @"Project")] Project = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParallelCurrency")] ParallelCurrency = 2, [System.Runtime.Serialization.EnumMember(Value = @"TaxReporting")] TaxReporting = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum FinanceYesNo_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"No")] No = 0, [System.Runtime.Serialization.EnumMember(Value = @"Yes")] Yes = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"Prospect")] Prospect = 1, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomer")] EndCustomer = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerCategoryProspect_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"Prospect")] Prospect = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerCategoryEndCustomer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomer")] EndCustomer = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum IdentifierRefValidation_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 0, [System.Runtime.Serialization.EnumMember(Value = @"Katakana")] Katakana = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CostPlusBasis_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"InternalPrice")] InternalPrice = 0, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeCost")] AlternativeCost = 1, [System.Runtime.Serialization.EnumMember(Value = @"TotalInternalPrice")] TotalInternalPrice = 2, [System.Runtime.Serialization.EnumMember(Value = @"Default")] Default = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustInvoicing_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Internal")] Internal = 0, [System.Runtime.Serialization.EnumMember(Value = @"External")] External = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoicing")] NoInvoicing = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum DeliveryNoteOptions_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCustomerOrder")] ShipmentCustomerOrder = 0, [System.Runtime.Serialization.EnumMember(Value = @"Shipment")] Shipment = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerOrder")] CustomerOrder = 2, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerBackorderOption_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoPartialDeliveriesAllow")] NoPartialDeliveriesAllow = 0, [System.Runtime.Serialization.EnumMember(Value = @"IncompleteLinesNotAllow")] IncompleteLinesNotAllow = 1, [System.Runtime.Serialization.EnumMember(Value = @"IncompletePkgsNotAllowed")] IncompletePkgsNotAllowed = 2, [System.Runtime.Serialization.EnumMember(Value = @"AllowIncompleteLinesPkgs")] AllowIncompleteLinesPkgs = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ReceivingAdviceType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"UseCustomerDefault")] UseCustomerDefault = 0, [System.Runtime.Serialization.EnumMember(Value = @"DoNotUse")] DoNotUse = 1, [System.Runtime.Serialization.EnumMember(Value = @"ArrivedGoods")] ArrivedGoods = 2, [System.Runtime.Serialization.EnumMember(Value = @"ApprovedGoods")] ApprovedGoods = 3, [System.Runtime.Serialization.EnumMember(Value = @"ArrivedAndApprovedGoods")] ArrivedAndApprovedGoods = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ReceivingAdviceTypeReceivingAdvice_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ArrivedGoods")] ArrivedGoods = 0, [System.Runtime.Serialization.EnumMember(Value = @"ApprovedGoods")] ApprovedGoods = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ReceivingAdviceTypeExclCustDefault_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"DoNotUse")] DoNotUse = 0, [System.Runtime.Serialization.EnumMember(Value = @"ArrivedGoods")] ArrivedGoods = 1, [System.Runtime.Serialization.EnumMember(Value = @"ApprovedGoods")] ApprovedGoods = 2, [System.Runtime.Serialization.EnumMember(Value = @"ArrivedAndApprovedGoods")] ArrivedAndApprovedGoods = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MatchingOption_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNote")] DeliveryNote = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomersPOReference")] CustomersPOReference = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceID")] ReferenceID = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum HandlUnitAtCoDelivery_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"UseSiteDefault")] UseSiteDefault = 0, [System.Runtime.Serialization.EnumMember(Value = @"Unattach")] Unattach = 1, [System.Runtime.Serialization.EnumMember(Value = @"Keep")] Keep = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MatchType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAutomaticMatch")] NoAutomaticMatch = 0, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticMatch")] AutomaticMatch = 1, [System.Runtime.Serialization.EnumMember(Value = @"AutoMatchCreateInvoice")] AutoMatchCreateInvoice = 2, [System.Runtime.Serialization.EnumMember(Value = @"AutoMatchCreatePostInv")] AutoMatchCreatePostInv = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum DocTextReplicateOption_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Replicate")] Replicate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DoNotReplicate")] DoNotReplicate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum GenYesNo_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Yes")] Yes = 0, [System.Runtime.Serialization.EnumMember(Value = @"No")] No = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustPartOwnerTransfer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"AllowOwnershipTransfer")] AllowOwnershipTransfer = 0, [System.Runtime.Serialization.EnumMember(Value = @"DoNotAllowOwnershipTran")] DoNotAllowOwnershipTran = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustPartAcqValLevel_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NoAcquisitionValue")] NoAcquisitionValue = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartLevelAcquisValue")] PartLevelAcquisValue = 1, [System.Runtime.Serialization.EnumMember(Value = @"LotBatchLevelAcquisVal")] LotBatchLevelAcquisVal = 2, [System.Runtime.Serialization.EnumMember(Value = @"SerialLevelAcquisValue")] SerialLevelAcquisValue = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CreateComReceiver_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Create")] Create = 0, [System.Runtime.Serialization.EnumMember(Value = @"DoNotCreate")] DoNotCreate = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum QuickRegisteredCustomer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"QuickRegistered")] QuickRegistered = 0, [System.Runtime.Serialization.EnumMember(Value = @"Normal")] Normal = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TemplateCustomer_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotTemplateCustomer")] NotTemplateCustomer = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ApprovalOption_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Automatically")] Automatically = 0, [System.Runtime.Serialization.EnumMember(Value = @"Manually")] Manually = 1, [System.Runtime.Serialization.EnumMember(Value = @"NotApplicable")] NotApplicable = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum ApprovalOptionApplicables_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Automatically")] Automatically = 0, [System.Runtime.Serialization.EnumMember(Value = @"Manually")] Manually = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustOrdCustomerCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Internal")] Internal = 0, [System.Runtime.Serialization.EnumMember(Value = @"External")] External = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PrintPackList_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveryNote")] PrintDeliveryNote = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoDeliveryNote")] NoDeliveryNote = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PrintOrderConfirmation_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"PrintOrderConf")] PrintOrderConf = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoOrderConf")] NoOrderConf = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerInvoiceType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NormalInvoice")] NormalInvoice = 0, [System.Runtime.Serialization.EnumMember(Value = @"CollectiveInvoice")] CollectiveInvoice = 1, [System.Runtime.Serialization.EnumMember(Value = @"NormalAndCollective")] NormalAndCollective = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerCreditBlock_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoCreditBlock")] NoCreditBlock = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CrmAccountLeadCategory_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 0, [System.Runtime.Serialization.EnumMember(Value = @"Prospect")] Prospect = 1, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomer")] EndCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLead")] BusinessLead = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum FndBoolean_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"False")] False = 0, [System.Runtime.Serialization.EnumMember(Value = @"True")] True = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_CustomerInfo_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"*")] _ = 0, [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 1, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 2, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 3, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 4, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum InvoiceReasonState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum WorkTimeCalendarState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"ChangesPending")] ChangesPending = 0, [System.Runtime.Serialization.EnumMember(Value = @"Generated")] Generated = 1, [System.Runtime.Serialization.EnumMember(Value = @"NotGenerated")] NotGenerated = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesMarketState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesPriceGroupState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PersonInfoState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesDistrictState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_IsoCurrency_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"NOK")] NOK = 0, [System.Runtime.Serialization.EnumMember(Value = @"USD")] USD = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomerGroupState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CommissionReceiverState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesRegionState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum AssortmentStructureState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Planned")] Planned = 0, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 1, [System.Runtime.Serialization.EnumMember(Value = @"Closed")] Closed = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesChargeGroupState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum MpccomShipViaState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessLeadState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Unqualified")] Unqualified = 0, [System.Runtime.Serialization.EnumMember(Value = @"InProgress")] InProgress = 1, [System.Runtime.Serialization.EnumMember(Value = @"Qualified")] Qualified = 2, [System.Runtime.Serialization.EnumMember(Value = @"Converted")] Converted = 3, [System.Runtime.Serialization.EnumMember(Value = @"Parked")] Parked = 4, [System.Runtime.Serialization.EnumMember(Value = @"Rejected")] Rejected = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesDiscountTypeState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_ContactRole_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxCalcStructureState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Preliminary")] Preliminary = 0, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 1, [System.Runtime.Serialization.EnumMember(Value = @"Obsolete")] Obsolete = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum BusinessRepresentativeState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum OrderDeliveryTermState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum SalesPartSalesmanState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum OrderCoordinatorState_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 0, [System.Runtime.Serialization.EnumMember(Value = @"Hidden")] Hidden = 1, [System.Runtime.Serialization.EnumMember(Value = @"Blocked")] Blocked = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_IsoCountry_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 0, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 1, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 2, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 3, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_CustomerSource_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_CustomerLoyalty_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_BusinessCampaignInterest_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_RepresentativeType_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_PersonalInterest_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_CustomerEmployeeCount_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_CustomerPotential_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_IsoLanguage_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"da")] Da = 0, [System.Runtime.Serialization.EnumMember(Value = @"nl")] Nl = 1, [System.Runtime.Serialization.EnumMember(Value = @"en")] En = 2, [System.Runtime.Serialization.EnumMember(Value = @"fi")] Fi = 3, [System.Runtime.Serialization.EnumMember(Value = @"cf")] Cf = 4, [System.Runtime.Serialization.EnumMember(Value = @"de")] De = 5, [System.Runtime.Serialization.EnumMember(Value = @"no")] No = 6, [System.Runtime.Serialization.EnumMember(Value = @"pl")] Pl = 7, [System.Runtime.Serialization.EnumMember(Value = @"bp")] Bp = 8, [System.Runtime.Serialization.EnumMember(Value = @"sv")] Sv = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_DecisionPowerType_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_ContactDepartment_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Lookup_BusinessOppProbability_Enumeration { } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum PartyType_Enumeration { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Customer")] Customer = 1, [System.Runtime.Serialization.EnumMember(Value = @"Supplier")] Supplier = 2, [System.Runtime.Serialization.EnumMember(Value = @"Person")] Person = 3, [System.Runtime.Serialization.EnumMember(Value = @"Manufacturer")] Manufacturer = 4, [System.Runtime.Serialization.EnumMember(Value = @"Owner")] Owner = 5, [System.Runtime.Serialization.EnumMember(Value = @"ForwardingAgent")] ForwardingAgent = 6, [System.Runtime.Serialization.EnumMember(Value = @"Employee")] Employee = 7, [System.Runtime.Serialization.EnumMember(Value = @"Customs")] Customs = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxOffice")] TaxOffice = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous2 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous3 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous4 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation desc")] EanLocation_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov desc")] AddressLov_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 22, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact desc")] SecondaryContact_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact desc")] PrimaryContact_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 28, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 30, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 40, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 42, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 44, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 46, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 48, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc desc")] CountryDesc_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 50, [System.Runtime.Serialization.EnumMember(Value = @"InCity desc")] InCity_desc = 51, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous5 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 9, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 10, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 11, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 19, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 23, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 24, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous6 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 9, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 10, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 11, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 19, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 23, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 24, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous7 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress desc")] DefAddress_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov desc")] AddressLov_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous8 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous9 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddressRef")] CustomerAddressRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous10 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous11 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 6, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov desc")] AddressLov_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 18, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 20, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 22, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 24, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 26, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 28, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 30, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 32, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 34, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 36, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 38, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Street")] Street = 40, [System.Runtime.Serialization.EnumMember(Value = @"Street desc")] Street_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"HouseNo")] HouseNo = 42, [System.Runtime.Serialization.EnumMember(Value = @"HouseNo desc")] HouseNo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"FlatNo")] FlatNo = 44, [System.Runtime.Serialization.EnumMember(Value = @"FlatNo desc")] FlatNo_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"Community")] Community = 46, [System.Runtime.Serialization.EnumMember(Value = @"Community desc")] Community_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"District")] District = 48, [System.Runtime.Serialization.EnumMember(Value = @"District desc")] District_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 50, [System.Runtime.Serialization.EnumMember(Value = @"Protected desc")] Protected_desc = 51, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous12 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 9, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 11, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 15, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 16, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 17, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 18, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 19, [System.Runtime.Serialization.EnumMember(Value = @"Street")] Street = 20, [System.Runtime.Serialization.EnumMember(Value = @"HouseNo")] HouseNo = 21, [System.Runtime.Serialization.EnumMember(Value = @"FlatNo")] FlatNo = 22, [System.Runtime.Serialization.EnumMember(Value = @"Community")] Community = 23, [System.Runtime.Serialization.EnumMember(Value = @"District")] District = 24, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous13 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 9, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 11, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 15, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 16, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 17, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 18, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 19, [System.Runtime.Serialization.EnumMember(Value = @"Street")] Street = 20, [System.Runtime.Serialization.EnumMember(Value = @"HouseNo")] HouseNo = 21, [System.Runtime.Serialization.EnumMember(Value = @"FlatNo")] FlatNo = 22, [System.Runtime.Serialization.EnumMember(Value = @"Community")] Community = 23, [System.Runtime.Serialization.EnumMember(Value = @"District")] District = 24, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous14 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 4, [System.Runtime.Serialization.EnumMember(Value = @"FirstName desc")] FirstName_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 6, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName desc")] MiddleName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 8, [System.Runtime.Serialization.EnumMember(Value = @"LastName desc")] LastName_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 10, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName desc")] AlternativeName_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 12, [System.Runtime.Serialization.EnumMember(Value = @"Prefix desc")] Prefix_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 14, [System.Runtime.Serialization.EnumMember(Value = @"BirthName desc")] BirthName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 16, [System.Runtime.Serialization.EnumMember(Value = @"Alias desc")] Alias_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 18, [System.Runtime.Serialization.EnumMember(Value = @"Initials desc")] Initials_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 20, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 24, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 26, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 28, [System.Runtime.Serialization.EnumMember(Value = @"Protected desc")] Protected_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 30, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 32, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 34, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 36, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 38, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 40, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId desc")] PictureThumbnailId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 42, [System.Runtime.Serialization.EnumMember(Value = @"Inactive desc")] Inactive_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 44, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers desc")] ContactCustomers_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 46, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers desc")] ContactSuppliers_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact desc")] CustomerContact_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 50, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 52, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact desc")] SupplierContact_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 54, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier desc")] BlockedForUseSupplier_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 56, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 58, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 59, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous15 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 2, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 3, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 4, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 5, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 6, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 7, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 8, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 9, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 13, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 17, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 18, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 19, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 20, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 21, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 22, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 27, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 28, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 29, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous16 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 2, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 3, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 4, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 5, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 6, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 7, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 8, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 9, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 13, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 17, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 18, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 19, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 20, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 21, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 22, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 27, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 28, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 29, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous17 { [System.Runtime.Serialization.EnumMember(Value = @"RoleDb")] RoleDb = 0, [System.Runtime.Serialization.EnumMember(Value = @"RoleDb desc")] RoleDb_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous18 { [System.Runtime.Serialization.EnumMember(Value = @"RoleDb")] RoleDb = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous19 { [System.Runtime.Serialization.EnumMember(Value = @"RoleDb")] RoleDb = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous20 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous21 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous22 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous23 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId desc")] TemplateCustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 6, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous24 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous25 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous26 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId desc")] TemplateCustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 6, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 8, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous27 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous28 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerId")] TemplateCustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous29 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType desc")] TaxLiabilityType_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous30 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous31 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous32 { [System.Runtime.Serialization.EnumMember(Value = @"Objid")] Objid = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objid desc")] Objid_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId desc")] TaxBookId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NodeId")] NodeId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NodeId desc")] NodeId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription")] NodeDescription = 10, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription desc")] NodeDescription_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId")] TaxStructId = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId desc")] TaxStructId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr")] StructDescr = 14, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr desc")] StructDescr_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId")] TaxSeriesId = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId desc")] TaxSeriesId_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous33 { [System.Runtime.Serialization.EnumMember(Value = @"Objid")] Objid = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"NodeId")] NodeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription")] NodeDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId")] TaxStructId = 6, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr")] StructDescr = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId")] TaxSeriesId = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous34 { [System.Runtime.Serialization.EnumMember(Value = @"Objid")] Objid = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"NodeId")] NodeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription")] NodeDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId")] TaxStructId = 6, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr")] StructDescr = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId")] TaxSeriesId = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous35 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId desc")] TaxCalcStructureId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous36 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous37 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous38 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous39 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous40 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous41 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous42 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous43 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous44 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 2, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId desc")] DelivTypeId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous45 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous46 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous47 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous48 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous49 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous50 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonId")] InactiveReasonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonId desc")] InactiveReasonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc desc")] InactiveReasonDesc_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous51 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonId")] InactiveReasonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous52 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonId")] InactiveReasonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous53 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"FullName")] FullName = 4, [System.Runtime.Serialization.EnumMember(Value = @"FullName desc")] FullName_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 6, [System.Runtime.Serialization.EnumMember(Value = @"Prefix desc")] Prefix_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 8, [System.Runtime.Serialization.EnumMember(Value = @"FirstName desc")] FirstName_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 10, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName desc")] MiddleName_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 12, [System.Runtime.Serialization.EnumMember(Value = @"LastName desc")] LastName_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 14, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous54 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"FullName")] FullName = 2, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 3, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 4, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 5, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 6, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous55 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"FullName")] FullName = 2, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 3, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 4, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 5, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 6, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous56 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 4, [System.Runtime.Serialization.EnumMember(Value = @"WayId desc")] WayId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 8, [System.Runtime.Serialization.EnumMember(Value = @"FormatId desc")] FormatId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 10, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription desc")] FormatDescription_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 12, [System.Runtime.Serialization.EnumMember(Value = @"Reference desc")] Reference_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 14, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo desc")] GenerateTraceInfo_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous57 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 4, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 6, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous58 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 4, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 6, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous59 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 4, [System.Runtime.Serialization.EnumMember(Value = @"WayId desc")] WayId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 8, [System.Runtime.Serialization.EnumMember(Value = @"FormatId desc")] FormatId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 10, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription desc")] FormatDescription_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 12, [System.Runtime.Serialization.EnumMember(Value = @"Reference desc")] Reference_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 14, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo desc")] GenerateTraceInfo_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous60 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 4, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 6, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous61 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"FormatId")] FormatId = 4, [System.Runtime.Serialization.EnumMember(Value = @"FormatDescription")] FormatDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 6, [System.Runtime.Serialization.EnumMember(Value = @"GenerateTraceInfo")] GenerateTraceInfo = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous62 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyName")] PartyName = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyName desc")] PartyName_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 6, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 10, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate desc")] InterestTemplate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 12, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate desc")] ReminderTemplate_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 14, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice desc")] PaymentAdvice_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous63 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyName")] PartyName = 2, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 4, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 5, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous64 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyName")] PartyName = 2, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 4, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 5, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous65 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription desc")] TemplateDescription_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CalculateInterest")] CalculateInterest = 6, [System.Runtime.Serialization.EnumMember(Value = @"CalculateInterest desc")] CalculateInterest_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmount")] MinInterestAmount = 8, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmount desc")] MinInterestAmount_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmountTotal")] MinInterestAmountTotal = 10, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmountTotal desc")] MinInterestAmountTotal_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercRate")] ExtraPercRate = 12, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercRate desc")] ExtraPercRate_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercNoOfDays")] ExtraPercNoOfDays = 14, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercNoOfDays desc")] ExtraPercNoOfDays_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 16, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay desc")] AcceptedDelay_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"InterestMethod")] InterestMethod = 18, [System.Runtime.Serialization.EnumMember(Value = @"InterestMethod desc")] InterestMethod_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplCust")] DefaultInterestTemplCust = 20, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplCust desc")] DefaultInterestTemplCust_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplSup")] DefaultInterestTemplSup = 22, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplSup desc")] DefaultInterestTemplSup_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId desc")] PayTermId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 26, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear desc")] UseCommercialYear_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"InterestPercent")] InterestPercent = 28, [System.Runtime.Serialization.EnumMember(Value = @"InterestPercent desc")] InterestPercent_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"InterestToleranceDays")] InterestToleranceDays = 30, [System.Runtime.Serialization.EnumMember(Value = @"InterestToleranceDays desc")] InterestToleranceDays_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"FinePercent")] FinePercent = 32, [System.Runtime.Serialization.EnumMember(Value = @"FinePercent desc")] FinePercent_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"FineToleranceDays")] FineToleranceDays = 34, [System.Runtime.Serialization.EnumMember(Value = @"FineToleranceDays desc")] FineToleranceDays_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PayInterestMethod")] PayInterestMethod = 36, [System.Runtime.Serialization.EnumMember(Value = @"PayInterestMethod desc")] PayInterestMethod_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"ReduceTolDays")] ReduceTolDays = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReduceTolDays desc")] ReduceTolDays_desc = 39, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous66 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"CalculateInterest")] CalculateInterest = 3, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmount")] MinInterestAmount = 4, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmountTotal")] MinInterestAmountTotal = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercRate")] ExtraPercRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercNoOfDays")] ExtraPercNoOfDays = 7, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 8, [System.Runtime.Serialization.EnumMember(Value = @"InterestMethod")] InterestMethod = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplCust")] DefaultInterestTemplCust = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplSup")] DefaultInterestTemplSup = 11, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 12, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 13, [System.Runtime.Serialization.EnumMember(Value = @"InterestPercent")] InterestPercent = 14, [System.Runtime.Serialization.EnumMember(Value = @"InterestToleranceDays")] InterestToleranceDays = 15, [System.Runtime.Serialization.EnumMember(Value = @"FinePercent")] FinePercent = 16, [System.Runtime.Serialization.EnumMember(Value = @"FineToleranceDays")] FineToleranceDays = 17, [System.Runtime.Serialization.EnumMember(Value = @"PayInterestMethod")] PayInterestMethod = 18, [System.Runtime.Serialization.EnumMember(Value = @"ReduceTolDays")] ReduceTolDays = 19, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous67 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"CalculateInterest")] CalculateInterest = 3, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmount")] MinInterestAmount = 4, [System.Runtime.Serialization.EnumMember(Value = @"MinInterestAmountTotal")] MinInterestAmountTotal = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercRate")] ExtraPercRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExtraPercNoOfDays")] ExtraPercNoOfDays = 7, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 8, [System.Runtime.Serialization.EnumMember(Value = @"InterestMethod")] InterestMethod = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplCust")] DefaultInterestTemplCust = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultInterestTemplSup")] DefaultInterestTemplSup = 11, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 12, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 13, [System.Runtime.Serialization.EnumMember(Value = @"InterestPercent")] InterestPercent = 14, [System.Runtime.Serialization.EnumMember(Value = @"InterestToleranceDays")] InterestToleranceDays = 15, [System.Runtime.Serialization.EnumMember(Value = @"FinePercent")] FinePercent = 16, [System.Runtime.Serialization.EnumMember(Value = @"FineToleranceDays")] FineToleranceDays = 17, [System.Runtime.Serialization.EnumMember(Value = @"PayInterestMethod")] PayInterestMethod = 18, [System.Runtime.Serialization.EnumMember(Value = @"ReduceTolDays")] ReduceTolDays = 19, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous68 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock desc")] CreditBlock_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate desc")] NextReviewDate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 12, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist desc")] CorpCreditRelationExist_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous69 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 4, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous70 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 4, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous71 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock desc")] CreditBlock_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 8, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate desc")] NextReviewDate_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous72 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 3, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous73 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 3, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous74 { [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType desc")] RepresentativeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb")] RepresentativeTypeDb = 4, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb desc")] RepresentativeTypeDb_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 6, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId desc")] RepresentativeId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 10, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous75 { [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 0, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb")] RepresentativeTypeDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous76 { [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 0, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb")] RepresentativeTypeDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous77 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb")] CategoryDb = 4, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb desc")] CategoryDb_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 6, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous78 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb")] CategoryDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous79 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb")] CategoryDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous80 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms desc")] DeliveryTerms_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous81 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous82 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous83 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute desc")] KeyAttribute_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 6, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary desc")] CustomerPrimary_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous84 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous85 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous86 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 2, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 8, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 12, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 14, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 18, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 20, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 26, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 29, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous87 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 3, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 4, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 5, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 8, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 9, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 10, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 14, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous88 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 3, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 4, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 5, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 8, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 9, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 10, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 14, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous89 { [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous90 { [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous91 { [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous92 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous93 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous94 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous95 { [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode")] AuthorizeCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode desc")] AuthorizeCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 6, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous96 { [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode")] AuthorizeCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous97 { [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode")] AuthorizeCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous98 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"OutputType desc")] OutputType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous99 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous100 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous101 { [System.Runtime.Serialization.EnumMember(Value = @"PhraseText")] PhraseText = 0, [System.Runtime.Serialization.EnumMember(Value = @"PhraseText desc")] PhraseText_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId desc")] PhraseId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode desc")] LanguageCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RevisionNo")] RevisionNo = 8, [System.Runtime.Serialization.EnumMember(Value = @"RevisionNo desc")] RevisionNo_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"PhaseInDate")] PhaseInDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"PhaseInDate desc")] PhaseInDate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PhaseOutDate")] PhaseOutDate = 12, [System.Runtime.Serialization.EnumMember(Value = @"PhaseOutDate desc")] PhaseOutDate_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous102 { [System.Runtime.Serialization.EnumMember(Value = @"PhraseText")] PhraseText = 0, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"RevisionNo")] RevisionNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"PhaseInDate")] PhaseInDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"PhaseOutDate")] PhaseOutDate = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous103 { [System.Runtime.Serialization.EnumMember(Value = @"PhraseText")] PhraseText = 0, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"RevisionNo")] RevisionNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"PhaseInDate")] PhaseInDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"PhaseOutDate")] PhaseOutDate = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous104 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 6, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription desc")] ClassificationDescription_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 8, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous105 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous106 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous107 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ContractDesc")] ContractDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"ContractDesc desc")] ContractDesc_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous108 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ContractDesc")] ContractDesc = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous109 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ContractDesc")] ContractDesc = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous110 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId desc")] SalesPriceGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 4, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany desc")] OwningCompany_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo desc")] PriceListNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 8, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate desc")] ValidToDate_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous111 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous112 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous113 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"SupParty")] SupParty = 14, [System.Runtime.Serialization.EnumMember(Value = @"SupParty desc")] SupParty_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous114 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupParty")] SupParty = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous115 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupParty")] SupParty = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous116 { [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous117 { [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous118 { [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous119 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 10, [System.Runtime.Serialization.EnumMember(Value = @"PackageName desc")] PackageName_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 12, [System.Runtime.Serialization.EnumMember(Value = @"EntityName desc")] EntityName_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 14, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName desc")] CallingProjectionName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 16, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote desc")] IsNewNote_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 18, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 20, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists desc")] NoteExists_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 22, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef desc")] ModifiedKeyRef_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous120 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous121 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous122 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RowNo")] RowNo = 10, [System.Runtime.Serialization.EnumMember(Value = @"RowNo desc")] RowNo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp")] Timestamp = 14, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp desc")] Timestamp_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Text")] Text = 16, [System.Runtime.Serialization.EnumMember(Value = @"Text desc")] Text_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource")] NoteSource = 18, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource desc")] NoteSource_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup")] Cleanup = 20, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup desc")] Cleanup_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous123 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"RowNo")] RowNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 6, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp")] Timestamp = 7, [System.Runtime.Serialization.EnumMember(Value = @"Text")] Text = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource")] NoteSource = 9, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup")] Cleanup = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous124 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"RowNo")] RowNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 6, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp")] Timestamp = 7, [System.Runtime.Serialization.EnumMember(Value = @"Text")] Text = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource")] NoteSource = 9, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup")] Cleanup = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous125 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 8, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 10, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous126 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous127 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"IdentityRef")] IdentityRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous128 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous129 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 8, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly desc")] ReadOnly_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 10, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 12, [System.Runtime.Serialization.EnumMember(Value = @"Label desc")] Label_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous130 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous131 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous132 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 8, [System.Runtime.Serialization.EnumMember(Value = @"ListMode desc")] ListMode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 12, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey desc")] SuperParentObjkey_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous133 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous134 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentStructureRef")] AssortmentStructureRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous135 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous136 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 14, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous137 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 6, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous138 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerAssortmentStructRef")] CustomerAssortmentStructRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerInfoRef")] CustomerInfoRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous139 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 6, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous140 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 8, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 10, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting")] CheckSalesGroupSetting = 12, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting desc")] CheckSalesGroupSetting_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer desc")] InternalCustomer_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 16, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer")] QuicklyRegisteredCustomer = 18, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer desc")] QuicklyRegisteredCustomer_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 20, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName desc")] CustomerName_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"Currency")] Currency = 26, [System.Runtime.Serialization.EnumMember(Value = @"Currency desc")] Currency_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer")] InvoiceCustomer = 28, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer desc")] InvoiceCustomer_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup")] CustomerStatisticGroup = 30, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup desc")] CustomerStatisticGroup_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup")] CustomerPriceGroup = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup desc")] CustomerPriceGroup_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 34, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 36, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 38, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop")] CreditStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop desc")] CreditStop_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 42, [System.Runtime.Serialization.EnumMember(Value = @"Reference desc")] Reference_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval")] CycleInterval = 44, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval desc")] CycleInterval_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated")] DateCreated = 46, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated desc")] DateCreated_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 48, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate desc")] ExpireDate_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 50, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType desc")] InvoiceType_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate")] LastInvoiceDate = 52, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate desc")] LastInvoiceDate_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation")] OrderConfirmation = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation desc")] OrderConfirmation_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes")] DeliveryNotes = 56, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes desc")] DeliveryNotes_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 58, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode desc")] LanguageCode_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 64, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 66, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder")] IncomingOrder = 68, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder desc")] IncomingOrder_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest")] IncomingChangeRequest = 70, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest desc")] IncomingChangeRequest_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser")] ApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser desc")] ApprovalUser_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator")] EdiCoordinator = 74, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator desc")] EdiCoordinator_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 76, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"OrderType")] OrderType = 78, [System.Runtime.Serialization.EnumMember(Value = @"OrderType desc")] OrderType_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite")] CustomerSite = 80, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite desc")] CustomerSite_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId")] CoTempateId = 82, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId desc")] CoTempateId_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 84, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription desc")] TemplateDescription_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 86, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription")] HierarchyDescription = 88, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription desc")] HierarchyDescription_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 90, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName")] HierarchyLevelName = 92, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName desc")] HierarchyLevelName_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 94, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 95, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous141 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 4, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 5, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting")] CheckSalesGroupSetting = 6, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 7, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 8, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer")] QuicklyRegisteredCustomer = 9, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 12, [System.Runtime.Serialization.EnumMember(Value = @"Currency")] Currency = 13, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer")] InvoiceCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup")] CustomerStatisticGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup")] CustomerPriceGroup = 16, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 17, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 18, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop")] CreditStop = 20, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 21, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval")] CycleInterval = 22, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated")] DateCreated = 23, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 24, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 25, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate")] LastInvoiceDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation")] OrderConfirmation = 27, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes")] DeliveryNotes = 28, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 29, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 33, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder")] IncomingOrder = 34, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest")] IncomingChangeRequest = 35, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser")] ApprovalUser = 36, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator")] EdiCoordinator = 37, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 38, [System.Runtime.Serialization.EnumMember(Value = @"OrderType")] OrderType = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite")] CustomerSite = 40, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId")] CoTempateId = 41, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 42, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 43, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription")] HierarchyDescription = 44, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 45, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName")] HierarchyLevelName = 46, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous142 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous143 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 4, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 5, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting")] CheckSalesGroupSetting = 6, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 7, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 8, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer")] QuicklyRegisteredCustomer = 9, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 12, [System.Runtime.Serialization.EnumMember(Value = @"Currency")] Currency = 13, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer")] InvoiceCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup")] CustomerStatisticGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup")] CustomerPriceGroup = 16, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 17, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 18, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop")] CreditStop = 20, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 21, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval")] CycleInterval = 22, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated")] DateCreated = 23, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 24, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 25, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate")] LastInvoiceDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation")] OrderConfirmation = 27, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes")] DeliveryNotes = 28, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 29, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 33, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder")] IncomingOrder = 34, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest")] IncomingChangeRequest = 35, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser")] ApprovalUser = 36, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator")] EdiCoordinator = 37, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 38, [System.Runtime.Serialization.EnumMember(Value = @"OrderType")] OrderType = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite")] CustomerSite = 40, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId")] CoTempateId = 41, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 42, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 43, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription")] HierarchyDescription = 44, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 45, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName")] HierarchyLevelName = 46, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous144 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 2, [System.Runtime.Serialization.EnumMember(Value = @"Turnover desc")] Turnover_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 6, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod desc")] YearEndPeriod_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 8, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount desc")] KeyAccount_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 10, [System.Runtime.Serialization.EnumMember(Value = @"SourceId desc")] SourceId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId desc")] PotentialId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId desc")] LoyaltyId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 16, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId desc")] EmployeeCountId_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 18, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId desc")] CompetitorId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 24, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 26, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 28, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId desc")] BusinessLeadId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 30, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 32, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb desc")] KeyAccountDb_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 34, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType desc")] ReferenceType_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 36, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName desc")] BusinessLeadName_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 38, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 40, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName desc")] MainRepresentativeName_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous145 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous146 { [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeRef")] MainRepresentativeRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrencyRef")] TurnoverCurrencyRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadRef")] BusinessLeadRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentAccountRef")] ParentAccountRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous147 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous148 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustRef desc")] CustRef_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort desc")] InvoiceSort_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 6, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval desc")] EdiAutoOrderApproval_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 8, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval desc")] EdiAutoChangeApproval_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode desc")] EdiAuthorizeCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 12, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel desc")] CustPartAcqValLevel_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText desc")] ReplicateDocText_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 18, [System.Runtime.Serialization.EnumMember(Value = @"MatchType desc")] MatchType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 20, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery desc")] HandlUnitAtCoDelivery_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 26, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 28, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder desc")] ReleaseInternalOrder_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 34, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 36, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines desc")] PrintDeliveredLines_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 38, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 40, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription desc")] CustomerGroupDescription_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay desc")] CustomerNoPay_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 44, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName desc")] CustomerNoPayName_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 46, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription desc")] CustPriceGroupDescription_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 52, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc desc")] MarketCodeDesc_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 54, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 56, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription desc")] DiscountTypeDescription_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 58, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 60, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc desc")] CreditCtrlGroupDesc_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 64, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 66, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 68, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer desc")] QuickRegisteredCustomer_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 70, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 72, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 74, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 76, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 78, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 80, [System.Runtime.Serialization.EnumMember(Value = @"CrStop desc")] CrStop_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 82, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 84, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer desc")] CustPartOwnerTransfer_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 88, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod desc")] CyclePeriod_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 90, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate desc")] LastIvcDate_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 92, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 94, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 96, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 98, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 100, [System.Runtime.Serialization.EnumMember(Value = @"DateDel desc")] DateDel_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 102, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 104, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf desc")] CheckSalesGrpDelivConf_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 106, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 108, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText desc")] DocumentText_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 110, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 112, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 114, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines desc")] SummarizedSourceLines_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 116, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges desc")] SummarizedFreightCharges_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 118, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax desc")] PrintAmountsInclTax_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 120, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 122, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies desc")] NoDelnoteCopies_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 124, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 126, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf desc")] EmailOrderConf_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 128, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice desc")] EmailInvoice_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 130, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser desc")] EdiAutoApprovalUser_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 132, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage desc")] SendChangeMessage_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 134, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend desc")] AutoDespatchAdvSend_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 136, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 138, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 140, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser desc")] RecAdvAutoApprovalUser_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 142, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 144, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser desc")] SbiAutoApprovalUser_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 146, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi desc")] UpdatePriceFromSbi_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 148, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 149, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 150, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 151, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 152, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts desc")] AllowAutoSubOfParts_desc = 153, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 154, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq desc")] B2bAutoCreateCoFromSq_desc = 155, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 156, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled desc")] PayledInstaled_desc = 157, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 158, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled desc")] PayledInstalled_desc = 159, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 160, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 161, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 162, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax desc")] PrintWithholdingTax_desc = 163, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous149 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous150 { [System.Runtime.Serialization.EnumMember(Value = @"PersonInfoRef")] PersonInfoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrpRef")] CustGrpRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayRef")] CustomerNoPayRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupIdRef")] CustPriceGroupIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustRefRef")] CustRefRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeRef")] MarketCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeRef")] DiscountTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupIdRef")] CreditControlGroupIdRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyRef")] HierarchyRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelRef")] HierarchyLevelRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCodeRef")] SalesmanCodeRef = 11, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSiteRef")] AcquisitionSiteRef = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderIdRef")] OrderIdRef = 13, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentIdRef")] ForwardAgentIdRef = 14, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCodeRef")] PrintControlCodeRef = 16, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUserRef")] EdiAutoApprovalUserRef = 17, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCodeRef")] EdiAuthorizeCodeRef = 18, [System.Runtime.Serialization.EnumMember(Value = @"EdiSiteRef")] EdiSiteRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUserRef")] RecAdvAutoApprovalUserRef = 20, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUserRef")] SbiAutoApprovalUserRef = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous151 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous152 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName desc")] CustomerName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 8, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 10, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb desc")] DefaultAssortmentDb_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 14, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb desc")] LimitSalesToAssortmentsDb_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 16, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist desc")] SalesLimitationsForOtherAssortmentsExist_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous153 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous154 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentIdRef")] AssortmentIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandardRef")] ClassificationStandardRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous155 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous156 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 4, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer desc")] PayingCustomer_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing desc")] CustInvoicing_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 12, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId desc")] ProjectSalesPriceId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 14, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId desc")] ProjectSupplierMarginId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 16, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance desc")] PrintReferance_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 18, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId desc")] TravelExpMarginId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId desc")] MatWithMarginId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 22, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis desc")] CostPlusBasis_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer desc")] OtherPayer_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous157 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous158 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceIdRef")] ProjectSalesPriceIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginIdRef")] ProjectSupplierMarginIdRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginIdRef")] TravelExpMarginIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginIdRef")] MatWithMarginIdRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyTypeRef")] CurrencyTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomerRef")] PayingCustomerRef = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous159 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous160 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 20, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference desc")] IdentifierReference_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 22, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation desc")] IdentifierRefValidation_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 26, [System.Runtime.Serialization.EnumMember(Value = @"OneTime desc")] OneTime_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 30, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 34, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 36, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose desc")] ValidDataProcessingPurpose_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 38, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn desc")] VisibleDataSubConstColumn_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 40, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo desc")] CustomerLogo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 44, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 46, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc desc")] BusinessClassificationDesc_desc = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous161 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous162 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNoRef")] AssociationNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormRef")] CorporateFormRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageTypeRef")] CustomerTaxUsageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationRef")] BusinessClassificationRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous163 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous164 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType desc")] TaxIdType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode")] ReportCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode desc")] ReportCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat")] LayoutFormat = 8, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat desc")] LayoutFormat_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous165 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 0, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode")] ReportCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat")] LayoutFormat = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous166 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 0, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode")] ReportCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat")] LayoutFormat = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous167 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault desc")] TypeDefault_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode desc")] RefCurrencyCode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 10, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory desc")] RateTypeCategory_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous168 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 3, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous169 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 3, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous170 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 6, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 8, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 14, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 18, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MethodId desc")] MethodId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 22, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 28, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId desc")] CompanyId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId desc")] CustomsId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 34, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 36, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId desc")] ManufacturerId_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 38, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId desc")] OwnerId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId desc")] TaxOfficeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 42, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal desc")] PartyTypeDbVal_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous171 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 9, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 16, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 17, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 18, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous172 { [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous173 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 9, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 16, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 17, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 18, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous174 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType desc")] ChargeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc")] ChargeTypeDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc desc")] ChargeTypeDesc_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount desc")] ChargeAmount_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax desc")] ChargeAmountInclTax_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 10, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost desc")] ChargeCost_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode desc")] TaxCode_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId")] TaxClassId = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId desc")] TaxClassId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas")] SalesUnitMeas = 16, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas desc")] SalesUnitMeas_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 18, [System.Runtime.Serialization.EnumMember(Value = @"Taxable desc")] Taxable_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 20, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup desc")] ChargeGroup_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 22, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 24, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType desc")] PrintChargeType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 26, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge desc")] PrintCollectCharge_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 28, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt desc")] IntrastatExempt_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge")] UnitCharge = 30, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge desc")] UnitCharge_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory desc")] SalesChgTypeCategory_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 34, [System.Runtime.Serialization.EnumMember(Value = @"Charge desc")] Charge_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 36, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent desc")] ChargeCostPercent_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 38, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType desc")] DeliveryType_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 40, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax desc")] UsePriceInclTax_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode")] StatisticalCode = 42, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode desc")] StatisticalCode_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous175 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc")] ChargeTypeDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId")] TaxClassId = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas")] SalesUnitMeas = 8, [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 10, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 11, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 13, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 14, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge")] UnitCharge = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 16, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 17, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 18, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 19, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 20, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode")] StatisticalCode = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous176 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc")] ChargeTypeDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId")] TaxClassId = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas")] SalesUnitMeas = 8, [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 10, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 11, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 13, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 14, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge")] UnitCharge = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 16, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 17, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 18, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 19, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 20, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode")] StatisticalCode = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous177 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 2, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous178 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous179 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous180 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef desc")] ExternalTaxSystemRef_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous181 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous182 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous183 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId desc")] ProjectSalesPriceId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName")] ProjectSalesPriceName = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName desc")] ProjectSalesPriceName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous184 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName")] ProjectSalesPriceName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous185 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName")] ProjectSalesPriceName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous186 { [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 0, [System.Runtime.Serialization.EnumMember(Value = @"RouteId desc")] RouteId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 4, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CheckOnLineLevel")] CheckOnLineLevel = 6, [System.Runtime.Serialization.EnumMember(Value = @"CheckOnLineLevel desc")] CheckOnLineLevel_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous187 { [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CheckOnLineLevel")] CheckOnLineLevel = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous188 { [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CheckOnLineLevel")] CheckOnLineLevel = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous189 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor")] ConvFactor = 4, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor desc")] ConvFactor_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding")] CurrencyRounding = 8, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding desc")] CurrencyRounding_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate")] DecimalsInRate = 10, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate desc")] DecimalsInRate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Inverted")] Inverted = 12, [System.Runtime.Serialization.EnumMember(Value = @"Inverted desc")] Inverted_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate")] EmuCurrencyFromDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate desc")] EmuCurrencyFromDate_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous190 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor")] ConvFactor = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding")] CurrencyRounding = 4, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate")] DecimalsInRate = 5, [System.Runtime.Serialization.EnumMember(Value = @"Inverted")] Inverted = 6, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate")] EmuCurrencyFromDate = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous191 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor")] ConvFactor = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding")] CurrencyRounding = 4, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate")] DecimalsInRate = 5, [System.Runtime.Serialization.EnumMember(Value = @"Inverted")] Inverted = 6, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate")] EmuCurrencyFromDate = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous192 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate desc")] DefaultTemplate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnA")] NoteOnA = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnA desc")] NoteOnA_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnB")] NoteOnB = 10, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnB desc")] NoteOnB_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnA")] TitleOnA = 12, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnA desc")] TitleOnA_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnB")] TitleOnB = 14, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnB desc")] TitleOnB_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous193 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnA")] NoteOnA = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnB")] NoteOnB = 5, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnA")] TitleOnA = 6, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnB")] TitleOnB = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous194 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnA")] NoteOnA = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteOnB")] NoteOnB = 5, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnA")] TitleOnA = 6, [System.Runtime.Serialization.EnumMember(Value = @"TitleOnB")] TitleOnB = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous195 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 2, [System.Runtime.Serialization.EnumMember(Value = @"ArContact desc")] ArContact_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 6, [System.Runtime.Serialization.EnumMember(Value = @"Phone desc")] Phone_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 8, [System.Runtime.Serialization.EnumMember(Value = @"Fax desc")] Fax_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 10, [System.Runtime.Serialization.EnumMember(Value = @"Email desc")] Email_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"UseAsDefault")] UseAsDefault = 12, [System.Runtime.Serialization.EnumMember(Value = @"UseAsDefault desc")] UseAsDefault_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous196 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 3, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 4, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 5, [System.Runtime.Serialization.EnumMember(Value = @"UseAsDefault")] UseAsDefault = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous197 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 3, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 4, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 5, [System.Runtime.Serialization.EnumMember(Value = @"UseAsDefault")] UseAsDefault = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous198 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId desc")] ProjectSupplierMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName")] ProjSupplierMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName desc")] ProjSupplierMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous199 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName")] ProjSupplierMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous200 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName")] ProjSupplierMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous201 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxReductionAtPayment")] TaxReductionAtPayment = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxReductionAtPayment desc")] TaxReductionAtPayment_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscForPartialPayments")] DiscForPartialPayments = 6, [System.Runtime.Serialization.EnumMember(Value = @"DiscForPartialPayments desc")] DiscForPartialPayments_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCustSeries")] DefaultCustSeries = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCustSeries desc")] DefaultCustSeries_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultSuppSeries")] DefaultSuppSeries = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultSuppSeries desc")] DefaultSuppSeries_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCredInvoices")] IncludeCredInvoices = 12, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCredInvoices desc")] IncludeCredInvoices_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCredInvoices")] AllocateCredInvoices = 14, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCredInvoices desc")] AllocateCredInvoices_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"IncludeSuppNegBal")] IncludeSuppNegBal = 16, [System.Runtime.Serialization.EnumMember(Value = @"IncludeSuppNegBal desc")] IncludeSuppNegBal_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"InterestInvoiceType")] InterestInvoiceType = 18, [System.Runtime.Serialization.EnumMember(Value = @"InterestInvoiceType desc")] InterestInvoiceType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ShowNettingPossibility")] ShowNettingPossibility = 20, [System.Runtime.Serialization.EnumMember(Value = @"ShowNettingPossibility desc")] ShowNettingPossibility_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustCredInvoices")] IncludeCustCredInvoices = 22, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustCredInvoices desc")] IncludeCustCredInvoices_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCustCredInv")] AllocateCustCredInv = 24, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCustCredInv desc")] AllocateCustCredInv_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustNettingPossibility")] CustNettingPossibility = 26, [System.Runtime.Serialization.EnumMember(Value = @"CustNettingPossibility desc")] CustNettingPossibility_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"GenBestPaymentTerm")] GenBestPaymentTerm = 28, [System.Runtime.Serialization.EnumMember(Value = @"GenBestPaymentTerm desc")] GenBestPaymentTerm_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 30, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 32, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 34, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance desc")] DiscDaysTolerance_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"IncludePaymOnAccount")] IncludePaymOnAccount = 36, [System.Runtime.Serialization.EnumMember(Value = @"IncludePaymOnAccount desc")] IncludePaymOnAccount_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"InclCustPaymOnAcc")] InclCustPaymOnAcc = 38, [System.Runtime.Serialization.EnumMember(Value = @"InclCustPaymOnAcc desc")] InclCustPaymOnAcc_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CudiffItemInvoiceType")] CudiffItemInvoiceType = 40, [System.Runtime.Serialization.EnumMember(Value = @"CudiffItemInvoiceType desc")] CudiffItemInvoiceType_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"SudiffItemInvoiceType")] SudiffItemInvoiceType = 42, [System.Runtime.Serialization.EnumMember(Value = @"SudiffItemInvoiceType desc")] SudiffItemInvoiceType_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"PaymentPostingMethod")] PaymentPostingMethod = 44, [System.Runtime.Serialization.EnumMember(Value = @"PaymentPostingMethod desc")] PaymentPostingMethod_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"MixedPaymentRecalcType")] MixedPaymentRecalcType = 46, [System.Runtime.Serialization.EnumMember(Value = @"MixedPaymentRecalcType desc")] MixedPaymentRecalcType_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"InclCustAdvancePayment")] InclCustAdvancePayment = 48, [System.Runtime.Serialization.EnumMember(Value = @"InclCustAdvancePayment desc")] InclCustAdvancePayment_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"InclSuppAdvancePayment")] InclSuppAdvancePayment = 50, [System.Runtime.Serialization.EnumMember(Value = @"InclSuppAdvancePayment desc")] InclSuppAdvancePayment_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"WriteOffPartialPay")] WriteOffPartialPay = 52, [System.Runtime.Serialization.EnumMember(Value = @"WriteOffPartialPay desc")] WriteOffPartialPay_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"RepostingMethodType")] RepostingMethodType = 54, [System.Runtime.Serialization.EnumMember(Value = @"RepostingMethodType desc")] RepostingMethodType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DissolveMethodType")] DissolveMethodType = 56, [System.Runtime.Serialization.EnumMember(Value = @"DissolveMethodType desc")] DissolveMethodType_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"IncludeRecurringPayments")] IncludeRecurringPayments = 58, [System.Runtime.Serialization.EnumMember(Value = @"IncludeRecurringPayments desc")] IncludeRecurringPayments_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"IncludeNonSuppPayments")] IncludeNonSuppPayments = 60, [System.Runtime.Serialization.EnumMember(Value = @"IncludeNonSuppPayments desc")] IncludeNonSuppPayments_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"PostInterestInvSeparate")] PostInterestInvSeparate = 62, [System.Runtime.Serialization.EnumMember(Value = @"PostInterestInvSeparate desc")] PostInterestInvSeparate_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"DocumentType")] DocumentType = 64, [System.Runtime.Serialization.EnumMember(Value = @"DocumentType desc")] DocumentType_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"CreatePaymentMatching")] CreatePaymentMatching = 66, [System.Runtime.Serialization.EnumMember(Value = @"CreatePaymentMatching desc")] CreatePaymentMatching_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"IncludeDebitInvoices")] IncludeDebitInvoices = 68, [System.Runtime.Serialization.EnumMember(Value = @"IncludeDebitInvoices desc")] IncludeDebitInvoices_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayPaymOnAcc")] InclRepayPaymOnAcc = 70, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayPaymOnAcc desc")] InclRepayPaymOnAcc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayAdvPayment")] InclRepayAdvPayment = 72, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayAdvPayment desc")] InclRepayAdvPayment_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"RepayOffsetPossible")] RepayOffsetPossible = 74, [System.Runtime.Serialization.EnumMember(Value = @"RepayOffsetPossible desc")] RepayOffsetPossible_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"RepayNettPossibility")] RepayNettPossibility = 76, [System.Runtime.Serialization.EnumMember(Value = @"RepayNettPossibility desc")] RepayNettPossibility_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 78, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust desc")] PartyTypeCust_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 80, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp desc")] PartyTypeSupp_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"RepostedInvoicePrefix")] RepostedInvoicePrefix = 82, [System.Runtime.Serialization.EnumMember(Value = @"RepostedInvoicePrefix desc")] RepostedInvoicePrefix_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustWithPosBal")] IncludeCustWithPosBal = 84, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustWithPosBal desc")] IncludeCustWithPosBal_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"ValidateIndemnities")] ValidateIndemnities = 86, [System.Runtime.Serialization.EnumMember(Value = @"ValidateIndemnities desc")] ValidateIndemnities_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"PrepayBasedPrepayType")] PrepayBasedPrepayType = 88, [System.Runtime.Serialization.EnumMember(Value = @"PrepayBasedPrepayType desc")] PrepayBasedPrepayType_desc = 89, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous202 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxReductionAtPayment")] TaxReductionAtPayment = 2, [System.Runtime.Serialization.EnumMember(Value = @"DiscForPartialPayments")] DiscForPartialPayments = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCustSeries")] DefaultCustSeries = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultSuppSeries")] DefaultSuppSeries = 5, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCredInvoices")] IncludeCredInvoices = 6, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCredInvoices")] AllocateCredInvoices = 7, [System.Runtime.Serialization.EnumMember(Value = @"IncludeSuppNegBal")] IncludeSuppNegBal = 8, [System.Runtime.Serialization.EnumMember(Value = @"InterestInvoiceType")] InterestInvoiceType = 9, [System.Runtime.Serialization.EnumMember(Value = @"ShowNettingPossibility")] ShowNettingPossibility = 10, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustCredInvoices")] IncludeCustCredInvoices = 11, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCustCredInv")] AllocateCustCredInv = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustNettingPossibility")] CustNettingPossibility = 13, [System.Runtime.Serialization.EnumMember(Value = @"GenBestPaymentTerm")] GenBestPaymentTerm = 14, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 15, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 16, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 17, [System.Runtime.Serialization.EnumMember(Value = @"IncludePaymOnAccount")] IncludePaymOnAccount = 18, [System.Runtime.Serialization.EnumMember(Value = @"InclCustPaymOnAcc")] InclCustPaymOnAcc = 19, [System.Runtime.Serialization.EnumMember(Value = @"CudiffItemInvoiceType")] CudiffItemInvoiceType = 20, [System.Runtime.Serialization.EnumMember(Value = @"SudiffItemInvoiceType")] SudiffItemInvoiceType = 21, [System.Runtime.Serialization.EnumMember(Value = @"PaymentPostingMethod")] PaymentPostingMethod = 22, [System.Runtime.Serialization.EnumMember(Value = @"MixedPaymentRecalcType")] MixedPaymentRecalcType = 23, [System.Runtime.Serialization.EnumMember(Value = @"InclCustAdvancePayment")] InclCustAdvancePayment = 24, [System.Runtime.Serialization.EnumMember(Value = @"InclSuppAdvancePayment")] InclSuppAdvancePayment = 25, [System.Runtime.Serialization.EnumMember(Value = @"WriteOffPartialPay")] WriteOffPartialPay = 26, [System.Runtime.Serialization.EnumMember(Value = @"RepostingMethodType")] RepostingMethodType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DissolveMethodType")] DissolveMethodType = 28, [System.Runtime.Serialization.EnumMember(Value = @"IncludeRecurringPayments")] IncludeRecurringPayments = 29, [System.Runtime.Serialization.EnumMember(Value = @"IncludeNonSuppPayments")] IncludeNonSuppPayments = 30, [System.Runtime.Serialization.EnumMember(Value = @"PostInterestInvSeparate")] PostInterestInvSeparate = 31, [System.Runtime.Serialization.EnumMember(Value = @"DocumentType")] DocumentType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CreatePaymentMatching")] CreatePaymentMatching = 33, [System.Runtime.Serialization.EnumMember(Value = @"IncludeDebitInvoices")] IncludeDebitInvoices = 34, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayPaymOnAcc")] InclRepayPaymOnAcc = 35, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayAdvPayment")] InclRepayAdvPayment = 36, [System.Runtime.Serialization.EnumMember(Value = @"RepayOffsetPossible")] RepayOffsetPossible = 37, [System.Runtime.Serialization.EnumMember(Value = @"RepayNettPossibility")] RepayNettPossibility = 38, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 39, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 40, [System.Runtime.Serialization.EnumMember(Value = @"RepostedInvoicePrefix")] RepostedInvoicePrefix = 41, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustWithPosBal")] IncludeCustWithPosBal = 42, [System.Runtime.Serialization.EnumMember(Value = @"ValidateIndemnities")] ValidateIndemnities = 43, [System.Runtime.Serialization.EnumMember(Value = @"PrepayBasedPrepayType")] PrepayBasedPrepayType = 44, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous203 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxReductionAtPayment")] TaxReductionAtPayment = 2, [System.Runtime.Serialization.EnumMember(Value = @"DiscForPartialPayments")] DiscForPartialPayments = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCustSeries")] DefaultCustSeries = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultSuppSeries")] DefaultSuppSeries = 5, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCredInvoices")] IncludeCredInvoices = 6, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCredInvoices")] AllocateCredInvoices = 7, [System.Runtime.Serialization.EnumMember(Value = @"IncludeSuppNegBal")] IncludeSuppNegBal = 8, [System.Runtime.Serialization.EnumMember(Value = @"InterestInvoiceType")] InterestInvoiceType = 9, [System.Runtime.Serialization.EnumMember(Value = @"ShowNettingPossibility")] ShowNettingPossibility = 10, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustCredInvoices")] IncludeCustCredInvoices = 11, [System.Runtime.Serialization.EnumMember(Value = @"AllocateCustCredInv")] AllocateCustCredInv = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustNettingPossibility")] CustNettingPossibility = 13, [System.Runtime.Serialization.EnumMember(Value = @"GenBestPaymentTerm")] GenBestPaymentTerm = 14, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 15, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 16, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 17, [System.Runtime.Serialization.EnumMember(Value = @"IncludePaymOnAccount")] IncludePaymOnAccount = 18, [System.Runtime.Serialization.EnumMember(Value = @"InclCustPaymOnAcc")] InclCustPaymOnAcc = 19, [System.Runtime.Serialization.EnumMember(Value = @"CudiffItemInvoiceType")] CudiffItemInvoiceType = 20, [System.Runtime.Serialization.EnumMember(Value = @"SudiffItemInvoiceType")] SudiffItemInvoiceType = 21, [System.Runtime.Serialization.EnumMember(Value = @"PaymentPostingMethod")] PaymentPostingMethod = 22, [System.Runtime.Serialization.EnumMember(Value = @"MixedPaymentRecalcType")] MixedPaymentRecalcType = 23, [System.Runtime.Serialization.EnumMember(Value = @"InclCustAdvancePayment")] InclCustAdvancePayment = 24, [System.Runtime.Serialization.EnumMember(Value = @"InclSuppAdvancePayment")] InclSuppAdvancePayment = 25, [System.Runtime.Serialization.EnumMember(Value = @"WriteOffPartialPay")] WriteOffPartialPay = 26, [System.Runtime.Serialization.EnumMember(Value = @"RepostingMethodType")] RepostingMethodType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DissolveMethodType")] DissolveMethodType = 28, [System.Runtime.Serialization.EnumMember(Value = @"IncludeRecurringPayments")] IncludeRecurringPayments = 29, [System.Runtime.Serialization.EnumMember(Value = @"IncludeNonSuppPayments")] IncludeNonSuppPayments = 30, [System.Runtime.Serialization.EnumMember(Value = @"PostInterestInvSeparate")] PostInterestInvSeparate = 31, [System.Runtime.Serialization.EnumMember(Value = @"DocumentType")] DocumentType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CreatePaymentMatching")] CreatePaymentMatching = 33, [System.Runtime.Serialization.EnumMember(Value = @"IncludeDebitInvoices")] IncludeDebitInvoices = 34, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayPaymOnAcc")] InclRepayPaymOnAcc = 35, [System.Runtime.Serialization.EnumMember(Value = @"InclRepayAdvPayment")] InclRepayAdvPayment = 36, [System.Runtime.Serialization.EnumMember(Value = @"RepayOffsetPossible")] RepayOffsetPossible = 37, [System.Runtime.Serialization.EnumMember(Value = @"RepayNettPossibility")] RepayNettPossibility = 38, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 39, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 40, [System.Runtime.Serialization.EnumMember(Value = @"RepostedInvoicePrefix")] RepostedInvoicePrefix = 41, [System.Runtime.Serialization.EnumMember(Value = @"IncludeCustWithPosBal")] IncludeCustWithPosBal = 42, [System.Runtime.Serialization.EnumMember(Value = @"ValidateIndemnities")] ValidateIndemnities = 43, [System.Runtime.Serialization.EnumMember(Value = @"PrepayBasedPrepayType")] PrepayBasedPrepayType = 44, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous204 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId desc")] InvoiceReasonId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReason")] InvoiceReason = 6, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReason desc")] InvoiceReason_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous205 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReason")] InvoiceReason = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous206 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReason")] InvoiceReason = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous207 { [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous208 { [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous209 { [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous210 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CalendarId")] CalendarId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CalendarId desc")] CalendarId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExceptionCode")] ExceptionCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExceptionCode desc")] ExceptionCode_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous211 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CalendarId")] CalendarId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExceptionCode")] ExceptionCode = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous212 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CalendarId")] CalendarId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExceptionCode")] ExceptionCode = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous213 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId desc")] TravelExpMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName")] TravelExpMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName desc")] TravelExpMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous214 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName")] TravelExpMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous215 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName")] TravelExpMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous216 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 4, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser desc")] OracleUser_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 6, [System.Runtime.Serialization.EnumMember(Value = @"WebUser desc")] WebUser_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 8, [System.Runtime.Serialization.EnumMember(Value = @"UserType desc")] UserType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 10, [System.Runtime.Serialization.EnumMember(Value = @"Active desc")] Active_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 12, [System.Runtime.Serialization.EnumMember(Value = @"Created desc")] Created_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 14, [System.Runtime.Serialization.EnumMember(Value = @"LastModified desc")] LastModified_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 16, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 18, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 20, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp desc")] DefaultIdp_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 22, [System.Runtime.Serialization.EnumMember(Value = @"FromScim desc")] FromScim_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous217 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 2, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 3, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 5, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 6, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 10, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous218 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 2, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 3, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 5, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 6, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 10, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous219 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress desc")] DeliveryAddress_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId desc")] DistCalendarId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 10, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId desc")] ManufCalendarId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 12, [System.Runtime.Serialization.EnumMember(Value = @"Offset desc")] Offset_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 14, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId desc")] DataCaptureMenuId_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous220 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 4, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 6, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous221 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 4, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 6, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous222 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous223 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous224 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous225 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId desc")] SalesPriceGroupId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupType")] SalesPriceGroupType = 6, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupType desc")] SalesPriceGroupType_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupUnit")] SalesPriceGroupUnit = 8, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupUnit desc")] SalesPriceGroupUnit_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous226 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupType")] SalesPriceGroupType = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupUnit")] SalesPriceGroupUnit = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous227 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupType")] SalesPriceGroupType = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupUnit")] SalesPriceGroupUnit = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous228 { [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous229 { [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous230 { [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous231 { [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous232 { [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous233 { [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous234 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 6, [System.Runtime.Serialization.EnumMember(Value = @"FirstName desc")] FirstName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 8, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName desc")] MiddleName_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 10, [System.Runtime.Serialization.EnumMember(Value = @"Prefix desc")] Prefix_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 12, [System.Runtime.Serialization.EnumMember(Value = @"LastName desc")] LastName_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 14, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName desc")] AlternativeName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 16, [System.Runtime.Serialization.EnumMember(Value = @"BirthName desc")] BirthName_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 18, [System.Runtime.Serialization.EnumMember(Value = @"Alias desc")] Alias_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 20, [System.Runtime.Serialization.EnumMember(Value = @"Initials desc")] Initials_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 22, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle")] JobTitle = 24, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle desc")] JobTitle_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 28, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 32, [System.Runtime.Serialization.EnumMember(Value = @"Protected desc")] Protected_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 34, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 36, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 38, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 40, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 42, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 44, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId desc")] PictureThumbnailId_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 46, [System.Runtime.Serialization.EnumMember(Value = @"Inactive desc")] Inactive_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 48, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers desc")] ContactCustomers_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 50, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers desc")] ContactSuppliers_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 52, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact desc")] CustomerContact_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 54, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs")] UpdateConBlockForCrmObjs = 56, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs desc")] UpdateConBlockForCrmObjs_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 58, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact desc")] SupplierContact_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 60, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier desc")] BlockedForUseSupplier_desc = 61, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous235 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 3, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 4, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 5, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 6, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 7, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 8, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 9, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 10, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 11, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle")] JobTitle = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 17, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 19, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 20, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 21, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 22, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 23, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 24, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 27, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs")] UpdateConBlockForCrmObjs = 28, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 29, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 30, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous236 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 3, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 4, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 5, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 6, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 7, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 8, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 9, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 10, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 11, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle")] JobTitle = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 17, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 19, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 20, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 21, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 22, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 23, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 24, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 27, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs")] UpdateConBlockForCrmObjs = 28, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 29, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 30, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous237 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription desc")] TemplateDescription_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreateReminder")] CreateReminder = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreateReminder desc")] CreateReminder_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate desc")] DefaultTemplate_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 10, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay desc")] AcceptedDelay_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AccruedInterest")] AccruedInterest = 12, [System.Runtime.Serialization.EnumMember(Value = @"AccruedInterest desc")] AccruedInterest_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PrintInvoicesNotDue")] PrintInvoicesNotDue = 14, [System.Runtime.Serialization.EnumMember(Value = @"PrintInvoicesNotDue desc")] PrintInvoicesNotDue_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintCustomerCredits")] PrintCustomerCredits = 16, [System.Runtime.Serialization.EnumMember(Value = @"PrintCustomerCredits desc")] PrintCustomerCredits_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ExclInstAmountDue")] ExclInstAmountDue = 18, [System.Runtime.Serialization.EnumMember(Value = @"ExclInstAmountDue desc")] ExclInstAmountDue_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ExclReminderAmtDue")] ExclReminderAmtDue = 20, [System.Runtime.Serialization.EnumMember(Value = @"ExclReminderAmtDue desc")] ExclReminderAmtDue_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 22, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency desc")] AccCurrency_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CollectionIdentity")] CollectionIdentity = 24, [System.Runtime.Serialization.EnumMember(Value = @"CollectionIdentity desc")] CollectionIdentity_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"HighestReminderLevel")] HighestReminderLevel = 26, [System.Runtime.Serialization.EnumMember(Value = @"HighestReminderLevel desc")] HighestReminderLevel_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"PrintArContact")] PrintArContact = 28, [System.Runtime.Serialization.EnumMember(Value = @"PrintArContact desc")] PrintArContact_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PrintNotes")] PrintNotes = 30, [System.Runtime.Serialization.EnumMember(Value = @"PrintNotes desc")] PrintNotes_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"PrintHighestLevelOnly")] PrintHighestLevelOnly = 32, [System.Runtime.Serialization.EnumMember(Value = @"PrintHighestLevelOnly desc")] PrintHighestLevelOnly_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderCreditItems")] ConsiderCreditItems = 34, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderCreditItems desc")] ConsiderCreditItems_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ReminderLayoutId")] ReminderLayoutId = 36, [System.Runtime.Serialization.EnumMember(Value = @"ReminderLayoutId desc")] ReminderLayoutId_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdditionalRef")] PrintAdditionalRef = 38, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdditionalRef desc")] PrintAdditionalRef_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"AcceptDelayForCredit")] AcceptDelayForCredit = 40, [System.Runtime.Serialization.EnumMember(Value = @"AcceptDelayForCredit desc")] AcceptDelayForCredit_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous238 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreateReminder")] CreateReminder = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 4, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 5, [System.Runtime.Serialization.EnumMember(Value = @"AccruedInterest")] AccruedInterest = 6, [System.Runtime.Serialization.EnumMember(Value = @"PrintInvoicesNotDue")] PrintInvoicesNotDue = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintCustomerCredits")] PrintCustomerCredits = 8, [System.Runtime.Serialization.EnumMember(Value = @"ExclInstAmountDue")] ExclInstAmountDue = 9, [System.Runtime.Serialization.EnumMember(Value = @"ExclReminderAmtDue")] ExclReminderAmtDue = 10, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"CollectionIdentity")] CollectionIdentity = 12, [System.Runtime.Serialization.EnumMember(Value = @"HighestReminderLevel")] HighestReminderLevel = 13, [System.Runtime.Serialization.EnumMember(Value = @"PrintArContact")] PrintArContact = 14, [System.Runtime.Serialization.EnumMember(Value = @"PrintNotes")] PrintNotes = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintHighestLevelOnly")] PrintHighestLevelOnly = 16, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderCreditItems")] ConsiderCreditItems = 17, [System.Runtime.Serialization.EnumMember(Value = @"ReminderLayoutId")] ReminderLayoutId = 18, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdditionalRef")] PrintAdditionalRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"AcceptDelayForCredit")] AcceptDelayForCredit = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous239 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreateReminder")] CreateReminder = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultTemplate")] DefaultTemplate = 4, [System.Runtime.Serialization.EnumMember(Value = @"AcceptedDelay")] AcceptedDelay = 5, [System.Runtime.Serialization.EnumMember(Value = @"AccruedInterest")] AccruedInterest = 6, [System.Runtime.Serialization.EnumMember(Value = @"PrintInvoicesNotDue")] PrintInvoicesNotDue = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintCustomerCredits")] PrintCustomerCredits = 8, [System.Runtime.Serialization.EnumMember(Value = @"ExclInstAmountDue")] ExclInstAmountDue = 9, [System.Runtime.Serialization.EnumMember(Value = @"ExclReminderAmtDue")] ExclReminderAmtDue = 10, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"CollectionIdentity")] CollectionIdentity = 12, [System.Runtime.Serialization.EnumMember(Value = @"HighestReminderLevel")] HighestReminderLevel = 13, [System.Runtime.Serialization.EnumMember(Value = @"PrintArContact")] PrintArContact = 14, [System.Runtime.Serialization.EnumMember(Value = @"PrintNotes")] PrintNotes = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintHighestLevelOnly")] PrintHighestLevelOnly = 16, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderCreditItems")] ConsiderCreditItems = 17, [System.Runtime.Serialization.EnumMember(Value = @"ReminderLayoutId")] ReminderLayoutId = 18, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdditionalRef")] PrintAdditionalRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"AcceptDelayForCredit")] AcceptDelayForCredit = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous240 { [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo desc")] PriceListNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 4, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId desc")] SalesPriceGroupId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate desc")] ValidToDate_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Rounding")] Rounding = 10, [System.Runtime.Serialization.EnumMember(Value = @"Rounding desc")] Rounding_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"SupPriceListNo")] SupPriceListNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupPriceListNo desc")] SupPriceListNo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 14, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany desc")] OwningCompany_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceBreakTemplates")] UsePriceBreakTemplates = 18, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceBreakTemplates desc")] UsePriceBreakTemplates_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AwaitReview")] AwaitReview = 20, [System.Runtime.Serialization.EnumMember(Value = @"AwaitReview desc")] AwaitReview_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefaultBasePriceSite")] DefaultBasePriceSite = 22, [System.Runtime.Serialization.EnumMember(Value = @"DefaultBasePriceSite desc")] DefaultBasePriceSite_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPercentageOffset")] DefaultPercentageOffset = 24, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPercentageOffset desc")] DefaultPercentageOffset_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAmountOffset")] DefaultAmountOffset = 26, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAmountOffset desc")] DefaultAmountOffset_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"SubscribeNewSalesParts")] SubscribeNewSalesParts = 28, [System.Runtime.Serialization.EnumMember(Value = @"SubscribeNewSalesParts desc")] SubscribeNewSalesParts_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 30, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax desc")] UsePriceInclTax_desc = 31, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous241 { [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Rounding")] Rounding = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupPriceListNo")] SupPriceListNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 7, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 8, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceBreakTemplates")] UsePriceBreakTemplates = 9, [System.Runtime.Serialization.EnumMember(Value = @"AwaitReview")] AwaitReview = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultBasePriceSite")] DefaultBasePriceSite = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPercentageOffset")] DefaultPercentageOffset = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAmountOffset")] DefaultAmountOffset = 13, [System.Runtime.Serialization.EnumMember(Value = @"SubscribeNewSalesParts")] SubscribeNewSalesParts = 14, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous242 { [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidToDate")] ValidToDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Rounding")] Rounding = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupPriceListNo")] SupPriceListNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 7, [System.Runtime.Serialization.EnumMember(Value = @"OwningCompany")] OwningCompany = 8, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceBreakTemplates")] UsePriceBreakTemplates = 9, [System.Runtime.Serialization.EnumMember(Value = @"AwaitReview")] AwaitReview = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultBasePriceSite")] DefaultBasePriceSite = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPercentageOffset")] DefaultPercentageOffset = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAmountOffset")] DefaultAmountOffset = 13, [System.Runtime.Serialization.EnumMember(Value = @"SubscribeNewSalesParts")] SubscribeNewSalesParts = 14, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous243 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode desc")] DistrictCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous244 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous245 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous246 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 2, [System.Runtime.Serialization.EnumMember(Value = @"Code desc")] Code_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous247 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous248 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous249 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Id desc")] Id_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous250 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous251 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous252 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber desc")] CurrencyNumber_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 6, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl desc")] UsedInAppl_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry desc")] DefaultCountry_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 10, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded desc")] SystemAdded_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous253 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 2, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous254 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 2, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous255 { [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 0, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType desc")] ShipmentType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationCo")] ShipmentCreationCo = 4, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationCo desc")] ShipmentCreationCo_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationShipOrd")] ShipmentCreationShipOrd = 6, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationShipOrd desc")] ShipmentCreationShipOrd_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmShipmentLocation")] ConfirmShipmentLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmShipmentLocation desc")] ConfirmShipmentLocation_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 10, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing desc")] OnlineProcessing_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ApproveBeforeDelivery")] ApproveBeforeDelivery = 12, [System.Runtime.Serialization.EnumMember(Value = @"ApproveBeforeDelivery desc")] ApproveBeforeDelivery_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 14, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking desc")] AllowPartialPicking_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeepManualWeightVol")] KeepManualWeightVol = 16, [System.Runtime.Serialization.EnumMember(Value = @"KeepManualWeightVol desc")] KeepManualWeightVol_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"PackingProposalId")] PackingProposalId = 18, [System.Runtime.Serialization.EnumMember(Value = @"PackingProposalId desc")] PackingProposalId_desc = 19, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous256 { [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationCo")] ShipmentCreationCo = 2, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationShipOrd")] ShipmentCreationShipOrd = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmShipmentLocation")] ConfirmShipmentLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ApproveBeforeDelivery")] ApproveBeforeDelivery = 6, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 7, [System.Runtime.Serialization.EnumMember(Value = @"KeepManualWeightVol")] KeepManualWeightVol = 8, [System.Runtime.Serialization.EnumMember(Value = @"PackingProposalId")] PackingProposalId = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous257 { [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationCo")] ShipmentCreationCo = 2, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentCreationShipOrd")] ShipmentCreationShipOrd = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmShipmentLocation")] ConfirmShipmentLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ApproveBeforeDelivery")] ApproveBeforeDelivery = 6, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 7, [System.Runtime.Serialization.EnumMember(Value = @"KeepManualWeightVol")] KeepManualWeightVol = 8, [System.Runtime.Serialization.EnumMember(Value = @"PackingProposalId")] PackingProposalId = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous258 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId desc")] HierarchyId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel")] CustomerLevel = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel desc")] CustomerLevel_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous259 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel")] CustomerLevel = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous260 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel")] CustomerLevel = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous261 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"GrossCalc")] GrossCalc = 2, [System.Runtime.Serialization.EnumMember(Value = @"GrossCalc desc")] GrossCalc_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PageFooting")] PageFooting = 4, [System.Runtime.Serialization.EnumMember(Value = @"PageFooting desc")] PageFooting_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"BasePlannedPayDate")] BasePlannedPayDate = 6, [System.Runtime.Serialization.EnumMember(Value = @"BasePlannedPayDate desc")] BasePlannedPayDate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"SepInvAuth")] SepInvAuth = 8, [System.Runtime.Serialization.EnumMember(Value = @"SepInvAuth desc")] SepInvAuth_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"InvSuppNotEqualSupp")] InvSuppNotEqualSupp = 10, [System.Runtime.Serialization.EnumMember(Value = @"InvSuppNotEqualSupp desc")] InvSuppNotEqualSupp_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"OrdCompNotEqualComp")] OrdCompNotEqualComp = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrdCompNotEqualComp desc")] OrdCompNotEqualComp_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VoucherAtInvEntry")] VoucherAtInvEntry = 14, [System.Runtime.Serialization.EnumMember(Value = @"VoucherAtInvEntry desc")] VoucherAtInvEntry_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SameVoucherNo")] SameVoucherNo = 16, [System.Runtime.Serialization.EnumMember(Value = @"SameVoucherNo desc")] SameVoucherNo_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethod")] NcfReferenceMethod = 18, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethod desc")] NcfReferenceMethod_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethodSupp")] NcfReferenceMethodSupp = 20, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethodSupp desc")] NcfReferenceMethodSupp_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 22, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 24, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"InternalIncomeType")] InternalIncomeType = 26, [System.Runtime.Serialization.EnumMember(Value = @"InternalIncomeType desc")] InternalIncomeType_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"IncomeTypeId")] IncomeTypeId = 28, [System.Runtime.Serialization.EnumMember(Value = @"IncomeTypeId desc")] IncomeTypeId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 32, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"NumbCustInvDateOrder")] NumbCustInvDateOrder = 34, [System.Runtime.Serialization.EnumMember(Value = @"NumbCustInvDateOrder desc")] NumbCustInvDateOrder_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"DisplayDate")] DisplayDate = 36, [System.Runtime.Serialization.EnumMember(Value = @"DisplayDate desc")] DisplayDate_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizationLevel")] AuthorizationLevel = 38, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizationLevel desc")] AuthorizationLevel_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"UsePostingProposal")] UsePostingProposal = 40, [System.Runtime.Serialization.EnumMember(Value = @"UsePostingProposal desc")] UsePostingProposal_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceAccToPostCtrl")] ToleranceAccToPostCtrl = 42, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceAccToPostCtrl desc")] ToleranceAccToPostCtrl_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"DefTaxWithholdingCode")] DefTaxWithholdingCode = 44, [System.Runtime.Serialization.EnumMember(Value = @"DefTaxWithholdingCode desc")] DefTaxWithholdingCode_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 46, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdvPayOnCuInv")] PrintAdvPayOnCuInv = 48, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdvPayOnCuInv desc")] PrintAdvPayOnCuInv_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"SuppInvNoUniqueness")] SuppInvNoUniqueness = 50, [System.Runtime.Serialization.EnumMember(Value = @"SuppInvNoUniqueness desc")] SuppInvNoUniqueness_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"DocumentClass")] DocumentClass = 52, [System.Runtime.Serialization.EnumMember(Value = @"DocumentClass desc")] DocumentClass_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentPrefix")] DocumentPrefix = 54, [System.Runtime.Serialization.EnumMember(Value = @"DocumentPrefix desc")] DocumentPrefix_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocClass")] AttachDocClass = 56, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocClass desc")] AttachDocClass_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocPrefix")] AttachDocPrefix = 58, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocPrefix desc")] AttachDocPrefix_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 60, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust desc")] PartyTypeCust_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 62, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp desc")] PartyTypeSupp_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrDiff")] AccCurrDiff = 64, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrDiff desc")] AccCurrDiff_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"InvoicCurrDiff")] InvoicCurrDiff = 66, [System.Runtime.Serialization.EnumMember(Value = @"InvoicCurrDiff desc")] InvoicCurrDiff_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"UniquePaymentReference")] UniquePaymentReference = 68, [System.Runtime.Serialization.EnumMember(Value = @"UniquePaymentReference desc")] UniquePaymentReference_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"MatchInvoiceAtArrival")] MatchInvoiceAtArrival = 70, [System.Runtime.Serialization.EnumMember(Value = @"MatchInvoiceAtArrival desc")] MatchInvoiceAtArrival_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"IncInvCurrRateBase")] IncInvCurrRateBase = 72, [System.Runtime.Serialization.EnumMember(Value = @"IncInvCurrRateBase desc")] IncInvCurrRateBase_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 74, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase desc")] OutInvCurrRateBase_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"GenerateOfficialInvNo")] GenerateOfficialInvNo = 76, [System.Runtime.Serialization.EnumMember(Value = @"GenerateOfficialInvNo desc")] GenerateOfficialInvNo_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 78, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase desc")] OutInvVouDateBase_desc = 79, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous262 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"GrossCalc")] GrossCalc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PageFooting")] PageFooting = 2, [System.Runtime.Serialization.EnumMember(Value = @"BasePlannedPayDate")] BasePlannedPayDate = 3, [System.Runtime.Serialization.EnumMember(Value = @"SepInvAuth")] SepInvAuth = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvSuppNotEqualSupp")] InvSuppNotEqualSupp = 5, [System.Runtime.Serialization.EnumMember(Value = @"OrdCompNotEqualComp")] OrdCompNotEqualComp = 6, [System.Runtime.Serialization.EnumMember(Value = @"VoucherAtInvEntry")] VoucherAtInvEntry = 7, [System.Runtime.Serialization.EnumMember(Value = @"SameVoucherNo")] SameVoucherNo = 8, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethod")] NcfReferenceMethod = 9, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethodSupp")] NcfReferenceMethodSupp = 10, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 11, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 12, [System.Runtime.Serialization.EnumMember(Value = @"InternalIncomeType")] InternalIncomeType = 13, [System.Runtime.Serialization.EnumMember(Value = @"IncomeTypeId")] IncomeTypeId = 14, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 15, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 16, [System.Runtime.Serialization.EnumMember(Value = @"NumbCustInvDateOrder")] NumbCustInvDateOrder = 17, [System.Runtime.Serialization.EnumMember(Value = @"DisplayDate")] DisplayDate = 18, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizationLevel")] AuthorizationLevel = 19, [System.Runtime.Serialization.EnumMember(Value = @"UsePostingProposal")] UsePostingProposal = 20, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceAccToPostCtrl")] ToleranceAccToPostCtrl = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefTaxWithholdingCode")] DefTaxWithholdingCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 23, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdvPayOnCuInv")] PrintAdvPayOnCuInv = 24, [System.Runtime.Serialization.EnumMember(Value = @"SuppInvNoUniqueness")] SuppInvNoUniqueness = 25, [System.Runtime.Serialization.EnumMember(Value = @"DocumentClass")] DocumentClass = 26, [System.Runtime.Serialization.EnumMember(Value = @"DocumentPrefix")] DocumentPrefix = 27, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocClass")] AttachDocClass = 28, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocPrefix")] AttachDocPrefix = 29, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 30, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 31, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrDiff")] AccCurrDiff = 32, [System.Runtime.Serialization.EnumMember(Value = @"InvoicCurrDiff")] InvoicCurrDiff = 33, [System.Runtime.Serialization.EnumMember(Value = @"UniquePaymentReference")] UniquePaymentReference = 34, [System.Runtime.Serialization.EnumMember(Value = @"MatchInvoiceAtArrival")] MatchInvoiceAtArrival = 35, [System.Runtime.Serialization.EnumMember(Value = @"IncInvCurrRateBase")] IncInvCurrRateBase = 36, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 37, [System.Runtime.Serialization.EnumMember(Value = @"GenerateOfficialInvNo")] GenerateOfficialInvNo = 38, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 39, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous263 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"GrossCalc")] GrossCalc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PageFooting")] PageFooting = 2, [System.Runtime.Serialization.EnumMember(Value = @"BasePlannedPayDate")] BasePlannedPayDate = 3, [System.Runtime.Serialization.EnumMember(Value = @"SepInvAuth")] SepInvAuth = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvSuppNotEqualSupp")] InvSuppNotEqualSupp = 5, [System.Runtime.Serialization.EnumMember(Value = @"OrdCompNotEqualComp")] OrdCompNotEqualComp = 6, [System.Runtime.Serialization.EnumMember(Value = @"VoucherAtInvEntry")] VoucherAtInvEntry = 7, [System.Runtime.Serialization.EnumMember(Value = @"SameVoucherNo")] SameVoucherNo = 8, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethod")] NcfReferenceMethod = 9, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceMethodSupp")] NcfReferenceMethodSupp = 10, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 11, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 12, [System.Runtime.Serialization.EnumMember(Value = @"InternalIncomeType")] InternalIncomeType = 13, [System.Runtime.Serialization.EnumMember(Value = @"IncomeTypeId")] IncomeTypeId = 14, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 15, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 16, [System.Runtime.Serialization.EnumMember(Value = @"NumbCustInvDateOrder")] NumbCustInvDateOrder = 17, [System.Runtime.Serialization.EnumMember(Value = @"DisplayDate")] DisplayDate = 18, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizationLevel")] AuthorizationLevel = 19, [System.Runtime.Serialization.EnumMember(Value = @"UsePostingProposal")] UsePostingProposal = 20, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceAccToPostCtrl")] ToleranceAccToPostCtrl = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefTaxWithholdingCode")] DefTaxWithholdingCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 23, [System.Runtime.Serialization.EnumMember(Value = @"PrintAdvPayOnCuInv")] PrintAdvPayOnCuInv = 24, [System.Runtime.Serialization.EnumMember(Value = @"SuppInvNoUniqueness")] SuppInvNoUniqueness = 25, [System.Runtime.Serialization.EnumMember(Value = @"DocumentClass")] DocumentClass = 26, [System.Runtime.Serialization.EnumMember(Value = @"DocumentPrefix")] DocumentPrefix = 27, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocClass")] AttachDocClass = 28, [System.Runtime.Serialization.EnumMember(Value = @"AttachDocPrefix")] AttachDocPrefix = 29, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeCust")] PartyTypeCust = 30, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeSupp")] PartyTypeSupp = 31, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrDiff")] AccCurrDiff = 32, [System.Runtime.Serialization.EnumMember(Value = @"InvoicCurrDiff")] InvoicCurrDiff = 33, [System.Runtime.Serialization.EnumMember(Value = @"UniquePaymentReference")] UniquePaymentReference = 34, [System.Runtime.Serialization.EnumMember(Value = @"MatchInvoiceAtArrival")] MatchInvoiceAtArrival = 35, [System.Runtime.Serialization.EnumMember(Value = @"IncInvCurrRateBase")] IncInvCurrRateBase = 36, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 37, [System.Runtime.Serialization.EnumMember(Value = @"GenerateOfficialInvNo")] GenerateOfficialInvNo = 38, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 39, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous264 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 2, [System.Runtime.Serialization.EnumMember(Value = @"MessageType desc")] MessageType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous265 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous266 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous267 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 4, [System.Runtime.Serialization.EnumMember(Value = @"GroupId desc")] GroupId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"UseCollectiveVoucher")] UseCollectiveVoucher = 8, [System.Runtime.Serialization.EnumMember(Value = @"UseCollectiveVoucher desc")] UseCollectiveVoucher_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 10, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies desc")] NoInvoiceCopies_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous268 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"UseCollectiveVoucher")] UseCollectiveVoucher = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous269 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"UseCollectiveVoucher")] UseCollectiveVoucher = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous270 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 4, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup desc")] NumerationGroup_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"InclTaxAmountAtInvPrint")] InclTaxAmountAtInvPrint = 8, [System.Runtime.Serialization.EnumMember(Value = @"InclTaxAmountAtInvPrint desc")] InclTaxAmountAtInvPrint_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Branch")] Branch = 10, [System.Runtime.Serialization.EnumMember(Value = @"Branch desc")] Branch_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous271 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"InclTaxAmountAtInvPrint")] InclTaxAmountAtInvPrint = 4, [System.Runtime.Serialization.EnumMember(Value = @"Branch")] Branch = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous272 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"InclTaxAmountAtInvPrint")] InclTaxAmountAtInvPrint = 4, [System.Runtime.Serialization.EnumMember(Value = @"Branch")] Branch = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous273 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous274 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous275 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous276 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous277 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous278 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous279 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 2, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CalculationPeriod")] CalculationPeriod = 4, [System.Runtime.Serialization.EnumMember(Value = @"CalculationPeriod desc")] CalculationPeriod_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AgreementId")] AgreementId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AgreementId desc")] AgreementId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 12, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverGroup")] CommissionReceiverGroup = 14, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverGroup desc")] CommissionReceiverGroup_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VendorNo")] VendorNo = 16, [System.Runtime.Serialization.EnumMember(Value = @"VendorNo desc")] VendorNo_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous280 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 1, [System.Runtime.Serialization.EnumMember(Value = @"CalculationPeriod")] CalculationPeriod = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"AgreementId")] AgreementId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverGroup")] CommissionReceiverGroup = 7, [System.Runtime.Serialization.EnumMember(Value = @"VendorNo")] VendorNo = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous281 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 1, [System.Runtime.Serialization.EnumMember(Value = @"CalculationPeriod")] CalculationPeriod = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"AgreementId")] AgreementId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverGroup")] CommissionReceiverGroup = 7, [System.Runtime.Serialization.EnumMember(Value = @"VendorNo")] VendorNo = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous282 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId desc")] MatWithMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName")] MatWithMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName desc")] MatWithMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous283 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName")] MatWithMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous284 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName")] MatWithMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous285 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AmountNotTaxable")] AmountNotTaxable = 20, [System.Runtime.Serialization.EnumMember(Value = @"AmountNotTaxable desc")] AmountNotTaxable_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"MinWithheldAmount")] MinWithheldAmount = 22, [System.Runtime.Serialization.EnumMember(Value = @"MinWithheldAmount desc")] MinWithheldAmount_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"UseWithholdAmountTable")] UseWithholdAmountTable = 24, [System.Runtime.Serialization.EnumMember(Value = @"UseWithholdAmountTable desc")] UseWithholdAmountTable_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 28, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"MinimumBaseAmount")] MinimumBaseAmount = 30, [System.Runtime.Serialization.EnumMember(Value = @"MinimumBaseAmount desc")] MinimumBaseAmount_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"TaxTypeCategory")] TaxTypeCategory = 34, [System.Runtime.Serialization.EnumMember(Value = @"TaxTypeCategory desc")] TaxTypeCategory_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"TaxInTaxBase")] TaxInTaxBase = 36, [System.Runtime.Serialization.EnumMember(Value = @"TaxInTaxBase desc")] TaxInTaxBase_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityClass")] TaxLiabilityClass = 38, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityClass desc")] TaxLiabilityClass_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"SiiExemptReason")] SiiExemptReason = 40, [System.Runtime.Serialization.EnumMember(Value = @"SiiExemptReason desc")] SiiExemptReason_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeCust")] BusinessTransTypeCust = 42, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeCust desc")] BusinessTransTypeCust_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeSup")] BusinessTransTypeSup = 44, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeSup desc")] BusinessTransTypeSup_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeFromSiiReporting")] ExcludeFromSiiReporting = 46, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeFromSiiReporting desc")] ExcludeFromSiiReporting_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"SiiOperationType")] SiiOperationType = 48, [System.Runtime.Serialization.EnumMember(Value = @"SiiOperationType desc")] SiiOperationType_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"EuOperation")] EuOperation = 50, [System.Runtime.Serialization.EnumMember(Value = @"EuOperation desc")] EuOperation_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"DiotTaxClassification")] DiotTaxClassification = 52, [System.Runtime.Serialization.EnumMember(Value = @"DiotTaxClassification desc")] DiotTaxClassification_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"TaxFactor")] TaxFactor = 54, [System.Runtime.Serialization.EnumMember(Value = @"TaxFactor desc")] TaxFactor_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"StampDuty")] StampDuty = 56, [System.Runtime.Serialization.EnumMember(Value = @"StampDuty desc")] StampDuty_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"RoundZeroDecimal")] RoundZeroDecimal = 58, [System.Runtime.Serialization.EnumMember(Value = @"RoundZeroDecimal desc")] RoundZeroDecimal_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"TaxCharacter")] TaxCharacter = 60, [System.Runtime.Serialization.EnumMember(Value = @"TaxCharacter desc")] TaxCharacter_desc = 61, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous286 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"AmountNotTaxable")] AmountNotTaxable = 10, [System.Runtime.Serialization.EnumMember(Value = @"MinWithheldAmount")] MinWithheldAmount = 11, [System.Runtime.Serialization.EnumMember(Value = @"UseWithholdAmountTable")] UseWithholdAmountTable = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 14, [System.Runtime.Serialization.EnumMember(Value = @"MinimumBaseAmount")] MinimumBaseAmount = 15, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxTypeCategory")] TaxTypeCategory = 17, [System.Runtime.Serialization.EnumMember(Value = @"TaxInTaxBase")] TaxInTaxBase = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityClass")] TaxLiabilityClass = 19, [System.Runtime.Serialization.EnumMember(Value = @"SiiExemptReason")] SiiExemptReason = 20, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeCust")] BusinessTransTypeCust = 21, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeSup")] BusinessTransTypeSup = 22, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeFromSiiReporting")] ExcludeFromSiiReporting = 23, [System.Runtime.Serialization.EnumMember(Value = @"SiiOperationType")] SiiOperationType = 24, [System.Runtime.Serialization.EnumMember(Value = @"EuOperation")] EuOperation = 25, [System.Runtime.Serialization.EnumMember(Value = @"DiotTaxClassification")] DiotTaxClassification = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxFactor")] TaxFactor = 27, [System.Runtime.Serialization.EnumMember(Value = @"StampDuty")] StampDuty = 28, [System.Runtime.Serialization.EnumMember(Value = @"RoundZeroDecimal")] RoundZeroDecimal = 29, [System.Runtime.Serialization.EnumMember(Value = @"TaxCharacter")] TaxCharacter = 30, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous287 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"AmountNotTaxable")] AmountNotTaxable = 10, [System.Runtime.Serialization.EnumMember(Value = @"MinWithheldAmount")] MinWithheldAmount = 11, [System.Runtime.Serialization.EnumMember(Value = @"UseWithholdAmountTable")] UseWithholdAmountTable = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 14, [System.Runtime.Serialization.EnumMember(Value = @"MinimumBaseAmount")] MinimumBaseAmount = 15, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxTypeCategory")] TaxTypeCategory = 17, [System.Runtime.Serialization.EnumMember(Value = @"TaxInTaxBase")] TaxInTaxBase = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityClass")] TaxLiabilityClass = 19, [System.Runtime.Serialization.EnumMember(Value = @"SiiExemptReason")] SiiExemptReason = 20, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeCust")] BusinessTransTypeCust = 21, [System.Runtime.Serialization.EnumMember(Value = @"BusinessTransTypeSup")] BusinessTransTypeSup = 22, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeFromSiiReporting")] ExcludeFromSiiReporting = 23, [System.Runtime.Serialization.EnumMember(Value = @"SiiOperationType")] SiiOperationType = 24, [System.Runtime.Serialization.EnumMember(Value = @"EuOperation")] EuOperation = 25, [System.Runtime.Serialization.EnumMember(Value = @"DiotTaxClassification")] DiotTaxClassification = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxFactor")] TaxFactor = 27, [System.Runtime.Serialization.EnumMember(Value = @"StampDuty")] StampDuty = 28, [System.Runtime.Serialization.EnumMember(Value = @"RoundZeroDecimal")] RoundZeroDecimal = 29, [System.Runtime.Serialization.EnumMember(Value = @"TaxCharacter")] TaxCharacter = 30, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous288 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId desc")] HierarchyId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous289 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous290 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous291 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode desc")] RegionCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous292 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous293 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous294 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 2, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup desc")] DeductionGroup_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous295 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous296 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous297 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 6, [System.Runtime.Serialization.EnumMember(Value = @"Notes desc")] Notes_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 8, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 10, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous298 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous299 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous300 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup desc")] ChargeGroup_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupDesc")] ChargeGroupDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupDesc desc")] ChargeGroupDesc_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 6, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory desc")] SalesChgTypeCategory_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous301 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupDesc")] ChargeGroupDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous302 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupDesc")] ChargeGroupDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous303 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId desc")] PayTermId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"BlockForDirectDebiting")] BlockForDirectDebiting = 6, [System.Runtime.Serialization.EnumMember(Value = @"BlockForDirectDebiting desc")] BlockForDirectDebiting_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderPayVacPeriod")] ConsiderPayVacPeriod = 8, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderPayVacPeriod desc")] ConsiderPayVacPeriod_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"VatDistribution")] VatDistribution = 10, [System.Runtime.Serialization.EnumMember(Value = @"VatDistribution desc")] VatDistribution_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 12, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear desc")] UseCommercialYear_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeCreditLimit")] ExcludeCreditLimit = 14, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeCreditLimit desc")] ExcludeCreditLimit_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SuppressAmount")] SuppressAmount = 16, [System.Runtime.Serialization.EnumMember(Value = @"SuppressAmount desc")] SuppressAmount_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CashDiscFixassAcqValue")] CashDiscFixassAcqValue = 18, [System.Runtime.Serialization.EnumMember(Value = @"CashDiscFixassAcqValue desc")] CashDiscFixassAcqValue_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"PrintSwissQRCode")] PrintSwissQRCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"PrintSwissQRCode desc")] PrintSwissQRCode_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous304 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"BlockForDirectDebiting")] BlockForDirectDebiting = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderPayVacPeriod")] ConsiderPayVacPeriod = 4, [System.Runtime.Serialization.EnumMember(Value = @"VatDistribution")] VatDistribution = 5, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeCreditLimit")] ExcludeCreditLimit = 7, [System.Runtime.Serialization.EnumMember(Value = @"SuppressAmount")] SuppressAmount = 8, [System.Runtime.Serialization.EnumMember(Value = @"CashDiscFixassAcqValue")] CashDiscFixassAcqValue = 9, [System.Runtime.Serialization.EnumMember(Value = @"PrintSwissQRCode")] PrintSwissQRCode = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous305 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"BlockForDirectDebiting")] BlockForDirectDebiting = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConsiderPayVacPeriod")] ConsiderPayVacPeriod = 4, [System.Runtime.Serialization.EnumMember(Value = @"VatDistribution")] VatDistribution = 5, [System.Runtime.Serialization.EnumMember(Value = @"UseCommercialYear")] UseCommercialYear = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExcludeCreditLimit")] ExcludeCreditLimit = 7, [System.Runtime.Serialization.EnumMember(Value = @"SuppressAmount")] SuppressAmount = 8, [System.Runtime.Serialization.EnumMember(Value = @"CashDiscFixassAcqValue")] CashDiscFixassAcqValue = 9, [System.Runtime.Serialization.EnumMember(Value = @"PrintSwissQRCode")] PrintSwissQRCode = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous306 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode desc")] ShipViaCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ModeOfTransport")] ModeOfTransport = 6, [System.Runtime.Serialization.EnumMember(Value = @"ModeOfTransport desc")] ModeOfTransport_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TransportUnitType")] TransportUnitType = 8, [System.Runtime.Serialization.EnumMember(Value = @"TransportUnitType desc")] TransportUnitType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ExtTransportCalendarId")] ExtTransportCalendarId = 10, [System.Runtime.Serialization.EnumMember(Value = @"ExtTransportCalendarId desc")] ExtTransportCalendarId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 12, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 14, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId desc")] FreightProviderId_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous307 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ModeOfTransport")] ModeOfTransport = 3, [System.Runtime.Serialization.EnumMember(Value = @"TransportUnitType")] TransportUnitType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ExtTransportCalendarId")] ExtTransportCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 6, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous308 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ModeOfTransport")] ModeOfTransport = 3, [System.Runtime.Serialization.EnumMember(Value = @"TransportUnitType")] TransportUnitType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ExtTransportCalendarId")] ExtTransportCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 6, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous309 { [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType")] PickInventoryType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType desc")] PickInventoryType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag")] OeAllocAssignFlag = 6, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag desc")] OeAllocAssignFlag_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 8, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing desc")] OnlineProcessing_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 10, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking desc")] AllowPartialPicking_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous310 { [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType")] PickInventoryType = 2, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag")] OeAllocAssignFlag = 3, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 4, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous311 { [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType")] PickInventoryType = 2, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag")] OeAllocAssignFlag = 3, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 4, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous312 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"LeadId")] LeadId = 2, [System.Runtime.Serialization.EnumMember(Value = @"LeadId desc")] LeadId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount")] ExistingAccount = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount desc")] ExistingAccount_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 20, [System.Runtime.Serialization.EnumMember(Value = @"Turnover desc")] Turnover_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency")] TurnoverCurrency = 22, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency desc")] TurnoverCurrency_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId desc")] PotentialId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SourceId desc")] SourceId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId")] ProcessId = 28, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId desc")] ProcessId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"StageId")] StageId = 30, [System.Runtime.Serialization.EnumMember(Value = @"StageId desc")] StageId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Probability")] Probability = 32, [System.Runtime.Serialization.EnumMember(Value = @"Probability desc")] Probability_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact")] ExistingContact = 34, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact desc")] ExistingContact_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid")] CustomerContactGuid = 36, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid desc")] CustomerContactGuid_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName")] MainContactName = 38, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName desc")] MainContactName_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 42, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 44, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead")] MergeLead = 46, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead desc")] MergeLead_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact")] UpdateMainContact = 48, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact desc")] UpdateMainContact_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 50, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep desc")] UpdateMainRep_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses")] MergeAddresses = 52, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses desc")] MergeAddresses_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts")] MergeContacts = 54, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts desc")] MergeContacts_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities")] MergeActivities = 56, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities desc")] MergeActivities_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives")] MergeRepresentatives = 58, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives desc")] MergeRepresentatives_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess")] MergeAccess = 60, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess desc")] MergeAccess_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail")] MergeBusinessMail = 62, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail desc")] MergeBusinessMail_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 64, [System.Runtime.Serialization.EnumMember(Value = @"LastModified desc")] LastModified_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 66, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount")] ConvertedAccount = 68, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount desc")] ConvertedAccount_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 70, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 72, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 74, [System.Runtime.Serialization.EnumMember(Value = @"Email desc")] Email_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 76, [System.Runtime.Serialization.EnumMember(Value = @"Phone desc")] Phone_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 78, [System.Runtime.Serialization.EnumMember(Value = @"Mobile desc")] Mobile_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId")] MainPersonId = 80, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId desc")] MainPersonId_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"AccountName")] AccountName = 82, [System.Runtime.Serialization.EnumMember(Value = @"AccountName desc")] AccountName_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"ContactName")] ContactName = 84, [System.Runtime.Serialization.EnumMember(Value = @"ContactName desc")] ContactName_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader")] UpdateFromHeader = 86, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader desc")] UpdateFromHeader_desc = 87, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous313 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"LeadId")] LeadId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount")] ExistingAccount = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 10, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency")] TurnoverCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId")] ProcessId = 14, [System.Runtime.Serialization.EnumMember(Value = @"StageId")] StageId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Probability")] Probability = 16, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact")] ExistingContact = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid")] CustomerContactGuid = 18, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName")] MainContactName = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead")] MergeLead = 23, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact")] UpdateMainContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses")] MergeAddresses = 26, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts")] MergeContacts = 27, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities")] MergeActivities = 28, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives")] MergeRepresentatives = 29, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess")] MergeAccess = 30, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail")] MergeBusinessMail = 31, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 33, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount")] ConvertedAccount = 34, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 35, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 36, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 37, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 38, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId")] MainPersonId = 40, [System.Runtime.Serialization.EnumMember(Value = @"AccountName")] AccountName = 41, [System.Runtime.Serialization.EnumMember(Value = @"ContactName")] ContactName = 42, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader")] UpdateFromHeader = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous314 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"LeadId")] LeadId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount")] ExistingAccount = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 10, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency")] TurnoverCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId")] ProcessId = 14, [System.Runtime.Serialization.EnumMember(Value = @"StageId")] StageId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Probability")] Probability = 16, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact")] ExistingContact = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid")] CustomerContactGuid = 18, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName")] MainContactName = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead")] MergeLead = 23, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact")] UpdateMainContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses")] MergeAddresses = 26, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts")] MergeContacts = 27, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities")] MergeActivities = 28, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives")] MergeRepresentatives = 29, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess")] MergeAccess = 30, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail")] MergeBusinessMail = 31, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 33, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount")] ConvertedAccount = 34, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 35, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 36, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 37, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 38, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId")] MainPersonId = 40, [System.Runtime.Serialization.EnumMember(Value = @"AccountName")] AccountName = 41, [System.Runtime.Serialization.EnumMember(Value = @"ContactName")] ContactName = 42, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader")] UpdateFromHeader = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous315 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 2, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 6, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous316 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous317 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous318 { [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease")] DoCheckWhenRelease = 4, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease desc")] DoCheckWhenRelease_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan")] DoCheckWhenPickPlan = 6, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan desc")] DoCheckWhenPickPlan_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList")] DoCheckWhenPickList = 8, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList desc")] DoCheckWhenPickList_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver")] DoCheckWhenDeliver = 10, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver desc")] DoCheckWhenDeliver_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers")] DefaultForNewCustomers = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers desc")] DefaultForNewCustomers_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk")] ExtCustCrdChk = 14, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk desc")] ExtCustCrdChk_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous319 { [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease")] DoCheckWhenRelease = 2, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan")] DoCheckWhenPickPlan = 3, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList")] DoCheckWhenPickList = 4, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver")] DoCheckWhenDeliver = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers")] DefaultForNewCustomers = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk")] ExtCustCrdChk = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous320 { [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease")] DoCheckWhenRelease = 2, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan")] DoCheckWhenPickPlan = 3, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList")] DoCheckWhenPickList = 4, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver")] DoCheckWhenDeliver = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers")] DefaultForNewCustomers = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk")] ExtCustCrdChk = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous321 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithholding")] TaxWithholding = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithholding desc")] TaxWithholding_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingMethod")] TaxRoundingMethod = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingMethod desc")] TaxRoundingMethod_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingLevel")] TaxRoundingLevel = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingLevel desc")] TaxRoundingLevel_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 12, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount desc")] WithholdingBaseAmount_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt desc")] TaxExempt_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom desc")] TaxExemptValidFrom_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo desc")] TaxExemptValidTo_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId desc")] TaxOfficeId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 22, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo desc")] FiscalNo_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 24, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec desc")] ExcFromSpesometroDec_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"IcmsTaxPayer")] IcmsTaxPayer = 26, [System.Runtime.Serialization.EnumMember(Value = @"IcmsTaxPayer desc")] IcmsTaxPayer_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"PermanentEstablishment")] PermanentEstablishment = 28, [System.Runtime.Serialization.EnumMember(Value = @"PermanentEstablishment desc")] PermanentEstablishment_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 30, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase desc")] OutInvVouDateBase_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 32, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase desc")] OutInvCurrRateBase_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"TaxSellCurrRateBase")] TaxSellCurrRateBase = 34, [System.Runtime.Serialization.EnumMember(Value = @"TaxSellCurrRateBase desc")] TaxSellCurrRateBase_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CompanyName")] CompanyName = 36, [System.Runtime.Serialization.EnumMember(Value = @"CompanyName desc")] CompanyName_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 38, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams desc")] EnabledLccParams_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"UseSpecificRates")] UseSpecificRates = 40, [System.Runtime.Serialization.EnumMember(Value = @"UseSpecificRates desc")] UseSpecificRates_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous322 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithholding")] TaxWithholding = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingMethod")] TaxRoundingMethod = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingLevel")] TaxRoundingLevel = 5, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 11, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 12, [System.Runtime.Serialization.EnumMember(Value = @"IcmsTaxPayer")] IcmsTaxPayer = 13, [System.Runtime.Serialization.EnumMember(Value = @"PermanentEstablishment")] PermanentEstablishment = 14, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 15, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxSellCurrRateBase")] TaxSellCurrRateBase = 17, [System.Runtime.Serialization.EnumMember(Value = @"CompanyName")] CompanyName = 18, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 19, [System.Runtime.Serialization.EnumMember(Value = @"UseSpecificRates")] UseSpecificRates = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous323 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous324 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"TaxWithholding")] TaxWithholding = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingMethod")] TaxRoundingMethod = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxRoundingLevel")] TaxRoundingLevel = 5, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 11, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 12, [System.Runtime.Serialization.EnumMember(Value = @"IcmsTaxPayer")] IcmsTaxPayer = 13, [System.Runtime.Serialization.EnumMember(Value = @"PermanentEstablishment")] PermanentEstablishment = 14, [System.Runtime.Serialization.EnumMember(Value = @"OutInvVouDateBase")] OutInvVouDateBase = 15, [System.Runtime.Serialization.EnumMember(Value = @"OutInvCurrRateBase")] OutInvCurrRateBase = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxSellCurrRateBase")] TaxSellCurrRateBase = 17, [System.Runtime.Serialization.EnumMember(Value = @"CompanyName")] CompanyName = 18, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 19, [System.Runtime.Serialization.EnumMember(Value = @"UseSpecificRates")] UseSpecificRates = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous325 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId desc")] TaxBookId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType desc")] TaxBookType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId desc")] TaxStructureId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"CusCountryCode")] CusCountryCode = 16, [System.Runtime.Serialization.EnumMember(Value = @"CusCountryCode desc")] CusCountryCode_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId desc")] TaxCalcStructureId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 20, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb desc")] SupplyCountryDb_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookRefDesc")] TaxBookRefDesc = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookRefDesc desc")] TaxBookRefDesc_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate desc")] ValidationDate_desc = 27, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous326 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 7, [System.Runtime.Serialization.EnumMember(Value = @"CusCountryCode")] CusCountryCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 9, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 10, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookRefDesc")] TaxBookRefDesc = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous327 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityRef")] TaxLiabilityRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookIdRef")] TaxBookIdRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureIdRef")] TaxCalcStructureIdRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous328 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 7, [System.Runtime.Serialization.EnumMember(Value = @"CusCountryCode")] CusCountryCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxCalcStructureId")] TaxCalcStructureId = 9, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 10, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookRefDesc")] TaxBookRefDesc = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous329 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber desc")] TaxIdNumber_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeSelection")] TaxCodeSelection = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeSelection desc")] TaxCodeSelection_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate desc")] ValidationDate_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous330 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeSelection")] TaxCodeSelection = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous331 { [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeRef")] TaxCodeRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeSelectionRef")] TaxCodeSelectionRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous332 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeSelection")] TaxCodeSelection = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous333 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 8, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType desc")] DeliveryType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"VatFreeVatCode")] VatFreeVatCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"VatFreeVatCode desc")] VatFreeVatCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate desc")] ValidationDate_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous334 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 4, [System.Runtime.Serialization.EnumMember(Value = @"VatFreeVatCode")] VatFreeVatCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous335 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeRef")] DeliveryTypeRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxFreeTaxCodeRef")] TaxFreeTaxCodeRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous336 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 4, [System.Runtime.Serialization.EnumMember(Value = @"VatFreeVatCode")] VatFreeVatCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous337 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptionCertNo")] TaxExemptionCertNo = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptionCertNo desc")] TaxExemptionCertNo_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CertificateJurisdiction")] CertificateJurisdiction = 10, [System.Runtime.Serialization.EnumMember(Value = @"CertificateJurisdiction desc")] CertificateJurisdiction_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CertificationDate")] CertificationDate = 12, [System.Runtime.Serialization.EnumMember(Value = @"CertificationDate desc")] CertificationDate_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ExpirationDate")] ExpirationDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"ExpirationDate desc")] ExpirationDate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ExemptCertificateType")] ExemptCertificateType = 16, [System.Runtime.Serialization.EnumMember(Value = @"ExemptCertificateType desc")] ExemptCertificateType_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous338 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptionCertNo")] TaxExemptionCertNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"CertificateJurisdiction")] CertificateJurisdiction = 5, [System.Runtime.Serialization.EnumMember(Value = @"CertificationDate")] CertificationDate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExpirationDate")] ExpirationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"ExemptCertificateType")] ExemptCertificateType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous339 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptionCertNo")] TaxExemptionCertNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"CertificateJurisdiction")] CertificateJurisdiction = 5, [System.Runtime.Serialization.EnumMember(Value = @"CertificationDate")] CertificationDate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExpirationDate")] ExpirationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"ExemptCertificateType")] ExemptCertificateType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous340 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 8, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry desc")] DeliveryCountry_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType desc")] TaxIdType_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"VatNo")] VatNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"VatNo desc")] VatNo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ValidatedDate")] ValidatedDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"ValidatedDate desc")] ValidatedDate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb desc")] SupplyCountryDb_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountryDb")] DeliveryCountryDb = 18, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountryDb desc")] DeliveryCountryDb_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode desc")] ParentCountryCode_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 22, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams desc")] EnabledLccParams_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous341 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 5, [System.Runtime.Serialization.EnumMember(Value = @"VatNo")] VatNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidatedDate")] ValidatedDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 8, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountryDb")] DeliveryCountryDb = 9, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous342 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdTypeRef")] TaxIdTypeRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous343 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 5, [System.Runtime.Serialization.EnumMember(Value = @"VatNo")] VatNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidatedDate")] ValidatedDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountryDb")] SupplyCountryDb = 8, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountryDb")] DeliveryCountryDb = 9, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous344 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry desc")] SupplyCountry_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 8, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry desc")] DeliveryCountry_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType desc")] TaxIdType_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber desc")] TaxIdNumber_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode desc")] ParentCountryCode_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous345 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 6, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous346 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdTypeRef")] TaxIdTypeRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous347 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"SupplyCountry")] SupplyCountry = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryCountry")] DeliveryCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdNumber")] TaxIdNumber = 6, [System.Runtime.Serialization.EnumMember(Value = @"ParentCountryCode")] ParentCountryCode = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous348 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreateJsInvoice")] CreateJsInvoice = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreateJsInvoice desc")] CreateJsInvoice_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"JsTaxNo")] JsTaxNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"JsTaxNo desc")] JsTaxNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBank")] JsOpenBank = 8, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBank desc")] JsOpenBank_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBankAccount")] JsOpenBankAccount = 10, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBankAccount desc")] JsOpenBankAccount_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"JsBankAddress")] JsBankAddress = 12, [System.Runtime.Serialization.EnumMember(Value = @"JsBankAddress desc")] JsBankAddress_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"JsBankPhone")] JsBankPhone = 14, [System.Runtime.Serialization.EnumMember(Value = @"JsBankPhone desc")] JsBankPhone_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"JsMemo")] JsMemo = 16, [System.Runtime.Serialization.EnumMember(Value = @"JsMemo desc")] JsMemo_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"AllowChangesToPrelInv")] AllowChangesToPrelInv = 18, [System.Runtime.Serialization.EnumMember(Value = @"AllowChangesToPrelInv desc")] AllowChangesToPrelInv_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"VirInvCrtMethodType")] VirInvCrtMethodType = 20, [System.Runtime.Serialization.EnumMember(Value = @"VirInvCrtMethodType desc")] VirInvCrtMethodType_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous349 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreateJsInvoice")] CreateJsInvoice = 2, [System.Runtime.Serialization.EnumMember(Value = @"JsTaxNo")] JsTaxNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBank")] JsOpenBank = 4, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBankAccount")] JsOpenBankAccount = 5, [System.Runtime.Serialization.EnumMember(Value = @"JsBankAddress")] JsBankAddress = 6, [System.Runtime.Serialization.EnumMember(Value = @"JsBankPhone")] JsBankPhone = 7, [System.Runtime.Serialization.EnumMember(Value = @"JsMemo")] JsMemo = 8, [System.Runtime.Serialization.EnumMember(Value = @"AllowChangesToPrelInv")] AllowChangesToPrelInv = 9, [System.Runtime.Serialization.EnumMember(Value = @"VirInvCrtMethodType")] VirInvCrtMethodType = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous350 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreateJsInvoice")] CreateJsInvoice = 2, [System.Runtime.Serialization.EnumMember(Value = @"JsTaxNo")] JsTaxNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBank")] JsOpenBank = 4, [System.Runtime.Serialization.EnumMember(Value = @"JsOpenBankAccount")] JsOpenBankAccount = 5, [System.Runtime.Serialization.EnumMember(Value = @"JsBankAddress")] JsBankAddress = 6, [System.Runtime.Serialization.EnumMember(Value = @"JsBankPhone")] JsBankPhone = 7, [System.Runtime.Serialization.EnumMember(Value = @"JsMemo")] JsMemo = 8, [System.Runtime.Serialization.EnumMember(Value = @"AllowChangesToPrelInv")] AllowChangesToPrelInv = 9, [System.Runtime.Serialization.EnumMember(Value = @"VirInvCrtMethodType")] VirInvCrtMethodType = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous351 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee")] InvoiceFee = 6, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee desc")] InvoiceFee_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 8, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate desc")] ExpireDate_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode")] NationalBankCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode desc")] NationalBankCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 12, [System.Runtime.Serialization.EnumMember(Value = @"GroupId desc")] GroupId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer")] DefAuthorizer = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer desc")] DefAuthorizer_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 16, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId desc")] PayTermId_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode")] DefVatCode = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode desc")] DefVatCode_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode")] RoundingTaxCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode desc")] RoundingTaxCode_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency")] DefCurrency = 22, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency desc")] DefCurrency_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays")] PaymDevDays = 24, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays desc")] PaymDevDays_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType")] IdentityType = 26, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType desc")] IdentityType_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode")] DefPreliminaryCode = 28, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode desc")] DefPreliminaryCode_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice")] AutomaticInvoice = 30, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice desc")] AutomaticInvoice_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 32, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 34, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck")] NcfReferenceCheck = 36, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck desc")] NcfReferenceCheck_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 38, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt desc")] TaxExempt_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom desc")] TaxExemptValidFrom_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 42, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo desc")] TaxExemptValidTo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin")] SecondTin = 44, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin desc")] SecondTin_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold")] ReportAndWithhold = 46, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold desc")] ReportAndWithhold_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId")] SupplierTaxOfficeId = 48, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId desc")] SupplierTaxOfficeId_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 50, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup desc")] NumerationGroup_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 52, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId desc")] TaxBookId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 54, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType desc")] TaxBookType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 56, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId desc")] TaxStructureId_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText")] PrintTaxCodeText = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText desc")] PrintTaxCodeText_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies desc")] NoInvoiceCopies_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType")] DefManSuppInvType = 62, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType desc")] DefManSuppInvType_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType")] DefAutoInvoiceType = 64, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType desc")] DefAutoInvoiceType_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType")] DefRecManSuppInvType = 66, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType desc")] DefRecManSuppInvType_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 68, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 70, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 72, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 74, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount desc")] WithholdingBaseAmount_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient")] InvoiceRecipient = 76, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient desc")] InvoiceRecipient_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier")] InvoicingSupplier = 78, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier desc")] InvoicingSupplier_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel")] MatchingLevel = 80, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel desc")] MatchingLevel_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance")] AllowTolerance = 82, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance desc")] AllowTolerance_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting")] CreateTolerancePosting = 84, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting desc")] CreateTolerancePosting_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff")] AllowQuantityDiff = 86, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff desc")] AllowQuantityDiff_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType")] DefaultCurrencyRateType = 88, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType desc")] DefaultCurrencyRateType_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm")] TaxCertificateForm = 90, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm desc")] TaxCertificateForm_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"IsNote")] IsNote = 92, [System.Runtime.Serialization.EnumMember(Value = @"IsNote desc")] IsNote_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 94, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId desc")] DelivTypeId_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode")] SupVatFreeVatCode = 96, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode desc")] SupVatFreeVatCode_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode")] SupCountryCode = 98, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode desc")] SupCountryCode_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag")] AutomaticPayAuthFlag = 100, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag desc")] AutomaticPayAuthFlag_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 102, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 104, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 106, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc desc")] InactiveReasonDesc_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity")] LegalIdentity = 108, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity desc")] LegalIdentity_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod")] PoRefRecRefValMethod = 110, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod desc")] PoRefRecRefValMethod_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId")] PostingTemplateId = 112, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId desc")] PostingTemplateId_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName")] LegalIdName = 114, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName desc")] LegalIdName_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId")] LegalIdAddrId = 116, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId desc")] LegalIdAddrId_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp")] BiTimestamp = 118, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp desc")] BiTimestamp_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 120, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId desc")] InvoiceReasonId_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 122, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo desc")] FiscalNo_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom")] InvoiceRecipientFrom = 124, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom desc")] InvoiceRecipientFrom_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 126, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec desc")] ExcFromSpesometroDec_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired")] ServiceCodeRequired = 128, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired desc")] ServiceCodeRequired_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode")] EinvoiceReceiverCode = 130, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode desc")] EinvoiceReceiverCode_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 132, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail")] CertifiedEmail = 134, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail desc")] CertifiedEmail_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative")] TaxRepresentative = 136, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative desc")] TaxRepresentative_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 138, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate desc")] ValidationDate_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 140, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency desc")] AccCurrency_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency")] EmuCurrency = 142, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency desc")] EmuCurrency_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur")] RefCurrCodeEur = 144, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur desc")] RefCurrCodeEur_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 146, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 148, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams desc")] EnabledLccParams_desc = 149, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous352 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee")] InvoiceFee = 3, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode")] NationalBankCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer")] DefAuthorizer = 7, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode")] DefVatCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode")] RoundingTaxCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency")] DefCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays")] PaymDevDays = 12, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType")] IdentityType = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode")] DefPreliminaryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice")] AutomaticInvoice = 15, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 16, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 17, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck")] NcfReferenceCheck = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 21, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin")] SecondTin = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold")] ReportAndWithhold = 23, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId")] SupplierTaxOfficeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 25, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 27, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 28, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText")] PrintTaxCodeText = 29, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 30, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType")] DefManSuppInvType = 31, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType")] DefAutoInvoiceType = 32, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType")] DefRecManSuppInvType = 33, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 34, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 35, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 36, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 37, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient")] InvoiceRecipient = 38, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier")] InvoicingSupplier = 39, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel")] MatchingLevel = 40, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance")] AllowTolerance = 41, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting")] CreateTolerancePosting = 42, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff")] AllowQuantityDiff = 43, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType")] DefaultCurrencyRateType = 44, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm")] TaxCertificateForm = 45, [System.Runtime.Serialization.EnumMember(Value = @"IsNote")] IsNote = 46, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 47, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode")] SupVatFreeVatCode = 48, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode")] SupCountryCode = 49, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag")] AutomaticPayAuthFlag = 50, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 51, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 52, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 53, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity")] LegalIdentity = 54, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod")] PoRefRecRefValMethod = 55, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId")] PostingTemplateId = 56, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName")] LegalIdName = 57, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId")] LegalIdAddrId = 58, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp")] BiTimestamp = 59, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 60, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 61, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom")] InvoiceRecipientFrom = 62, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 63, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired")] ServiceCodeRequired = 64, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode")] EinvoiceReceiverCode = 65, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 66, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail")] CertifiedEmail = 67, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative")] TaxRepresentative = 68, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 69, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 70, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency")] EmuCurrency = 71, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur")] RefCurrCodeEur = 72, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 73, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 74, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous353 { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonIdRef")] InvoiceReasonIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"InvoicePartyTypeGroupRef")] InvoicePartyTypeGroupRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"PaymentTermRef")] PaymentTermRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateTypeRef")] DefaultCurrencyRateTypeRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrencyRef")] DefCurrencyRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroupRef")] NumerationGroupRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeRef")] TaxCodeRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonRef")] InactiveReasonRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmailRef")] CertifiedEmailRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentativeRef")] TaxRepresentativeRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"PersonIdRef")] PersonIdRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous354 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee")] InvoiceFee = 3, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode")] NationalBankCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer")] DefAuthorizer = 7, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode")] DefVatCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode")] RoundingTaxCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency")] DefCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays")] PaymDevDays = 12, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType")] IdentityType = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode")] DefPreliminaryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice")] AutomaticInvoice = 15, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 16, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 17, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck")] NcfReferenceCheck = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 21, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin")] SecondTin = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold")] ReportAndWithhold = 23, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId")] SupplierTaxOfficeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 25, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 27, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 28, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText")] PrintTaxCodeText = 29, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 30, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType")] DefManSuppInvType = 31, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType")] DefAutoInvoiceType = 32, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType")] DefRecManSuppInvType = 33, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 34, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 35, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 36, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 37, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient")] InvoiceRecipient = 38, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier")] InvoicingSupplier = 39, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel")] MatchingLevel = 40, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance")] AllowTolerance = 41, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting")] CreateTolerancePosting = 42, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff")] AllowQuantityDiff = 43, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType")] DefaultCurrencyRateType = 44, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm")] TaxCertificateForm = 45, [System.Runtime.Serialization.EnumMember(Value = @"IsNote")] IsNote = 46, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 47, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode")] SupVatFreeVatCode = 48, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode")] SupCountryCode = 49, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag")] AutomaticPayAuthFlag = 50, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 51, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 52, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 53, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity")] LegalIdentity = 54, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod")] PoRefRecRefValMethod = 55, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId")] PostingTemplateId = 56, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName")] LegalIdName = 57, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId")] LegalIdAddrId = 58, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp")] BiTimestamp = 59, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 60, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 61, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom")] InvoiceRecipientFrom = 62, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 63, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired")] ServiceCodeRequired = 64, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode")] EinvoiceReceiverCode = 65, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 66, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail")] CertifiedEmail = 67, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative")] TaxRepresentative = 68, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 69, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 70, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency")] EmuCurrency = 71, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur")] RefCurrCodeEur = 72, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 73, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 74, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous355 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 6, [System.Runtime.Serialization.EnumMember(Value = @"Code desc")] Code_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 8, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous356 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 3, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous357 { [System.Runtime.Serialization.EnumMember(Value = @"CodeRef")] CodeRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous358 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Code")] Code = 3, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous359 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode desc")] MediaCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 8, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass desc")] MessageClass_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 10, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 12, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 14, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo desc")] SequenceNo_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 16, [System.Runtime.Serialization.EnumMember(Value = @"Locale desc")] Locale_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous360 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 5, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 7, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous361 { [System.Runtime.Serialization.EnumMember(Value = @"MessageClassRef")] MessageClassRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCodeRef")] MediaCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressRef")] AddressRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"LocaleRef")] LocaleRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous362 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 5, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 7, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous363 { [System.Runtime.Serialization.EnumMember(Value = @"ClassId")] ClassId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ClassId desc")] ClassId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Action")] Action = 2, [System.Runtime.Serialization.EnumMember(Value = @"Action desc")] Action_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Receive")] Receive = 4, [System.Runtime.Serialization.EnumMember(Value = @"Receive desc")] Receive_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Send")] Send = 6, [System.Runtime.Serialization.EnumMember(Value = @"Send desc")] Send_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 8, [System.Runtime.Serialization.EnumMember(Value = @"Notes desc")] Notes_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Module")] Module = 10, [System.Runtime.Serialization.EnumMember(Value = @"Module desc")] Module_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous364 { [System.Runtime.Serialization.EnumMember(Value = @"ClassId")] ClassId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Action")] Action = 1, [System.Runtime.Serialization.EnumMember(Value = @"Receive")] Receive = 2, [System.Runtime.Serialization.EnumMember(Value = @"Send")] Send = 3, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 4, [System.Runtime.Serialization.EnumMember(Value = @"Module")] Module = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous365 { [System.Runtime.Serialization.EnumMember(Value = @"ClassId")] ClassId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Action")] Action = 1, [System.Runtime.Serialization.EnumMember(Value = @"Receive")] Receive = 2, [System.Runtime.Serialization.EnumMember(Value = @"Send")] Send = 3, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 4, [System.Runtime.Serialization.EnumMember(Value = @"Module")] Module = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous366 { [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode desc")] MediaCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous367 { [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous368 { [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous369 { [System.Runtime.Serialization.EnumMember(Value = @"Receiver")] Receiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"Receiver desc")] Receiver_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"SiteId")] SiteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"SiteId desc")] SiteId_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous370 { [System.Runtime.Serialization.EnumMember(Value = @"Receiver")] Receiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"SiteId")] SiteId = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous371 { [System.Runtime.Serialization.EnumMember(Value = @"Receiver")] Receiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"SiteId")] SiteId = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous372 { [System.Runtime.Serialization.EnumMember(Value = @"LangCode")] LangCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"LangCode desc")] LangCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Status")] Status = 4, [System.Runtime.Serialization.EnumMember(Value = @"Status desc")] Status_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DerivedFromLangCode")] DerivedFromLangCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"DerivedFromLangCode desc")] DerivedFromLangCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NlsTerritory")] NlsTerritory = 8, [System.Runtime.Serialization.EnumMember(Value = @"NlsTerritory desc")] NlsTerritory_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NlsLanguage")] NlsLanguage = 10, [System.Runtime.Serialization.EnumMember(Value = @"NlsLanguage desc")] NlsLanguage_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"LangCodeRfc3066")] LangCodeRfc3066 = 12, [System.Runtime.Serialization.EnumMember(Value = @"LangCodeRfc3066 desc")] LangCodeRfc3066_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"NlsDateFormat")] NlsDateFormat = 14, [System.Runtime.Serialization.EnumMember(Value = @"NlsDateFormat desc")] NlsDateFormat_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"NlsTimeFormat")] NlsTimeFormat = 16, [System.Runtime.Serialization.EnumMember(Value = @"NlsTimeFormat desc")] NlsTimeFormat_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Installed")] Installed = 18, [System.Runtime.Serialization.EnumMember(Value = @"Installed desc")] Installed_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"EnabledForLogin")] EnabledForLogin = 20, [System.Runtime.Serialization.EnumMember(Value = @"EnabledForLogin desc")] EnabledForLogin_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"NlsCalendar")] NlsCalendar = 22, [System.Runtime.Serialization.EnumMember(Value = @"NlsCalendar desc")] NlsCalendar_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"DictionaryUpdate")] DictionaryUpdate = 24, [System.Runtime.Serialization.EnumMember(Value = @"DictionaryUpdate desc")] DictionaryUpdate_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ShortDate")] ShortDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"ShortDate desc")] ShortDate_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"MediumDate")] MediumDate = 28, [System.Runtime.Serialization.EnumMember(Value = @"MediumDate desc")] MediumDate_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"LongDate")] LongDate = 30, [System.Runtime.Serialization.EnumMember(Value = @"LongDate desc")] LongDate_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"FullDate")] FullDate = 32, [System.Runtime.Serialization.EnumMember(Value = @"FullDate desc")] FullDate_desc = 33, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous373 { [System.Runtime.Serialization.EnumMember(Value = @"LangCode")] LangCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"Status")] Status = 2, [System.Runtime.Serialization.EnumMember(Value = @"DerivedFromLangCode")] DerivedFromLangCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"NlsTerritory")] NlsTerritory = 4, [System.Runtime.Serialization.EnumMember(Value = @"NlsLanguage")] NlsLanguage = 5, [System.Runtime.Serialization.EnumMember(Value = @"LangCodeRfc3066")] LangCodeRfc3066 = 6, [System.Runtime.Serialization.EnumMember(Value = @"NlsDateFormat")] NlsDateFormat = 7, [System.Runtime.Serialization.EnumMember(Value = @"NlsTimeFormat")] NlsTimeFormat = 8, [System.Runtime.Serialization.EnumMember(Value = @"Installed")] Installed = 9, [System.Runtime.Serialization.EnumMember(Value = @"EnabledForLogin")] EnabledForLogin = 10, [System.Runtime.Serialization.EnumMember(Value = @"NlsCalendar")] NlsCalendar = 11, [System.Runtime.Serialization.EnumMember(Value = @"DictionaryUpdate")] DictionaryUpdate = 12, [System.Runtime.Serialization.EnumMember(Value = @"ShortDate")] ShortDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"MediumDate")] MediumDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"LongDate")] LongDate = 15, [System.Runtime.Serialization.EnumMember(Value = @"FullDate")] FullDate = 16, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous374 { [System.Runtime.Serialization.EnumMember(Value = @"LangCode")] LangCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"Status")] Status = 2, [System.Runtime.Serialization.EnumMember(Value = @"DerivedFromLangCode")] DerivedFromLangCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"NlsTerritory")] NlsTerritory = 4, [System.Runtime.Serialization.EnumMember(Value = @"NlsLanguage")] NlsLanguage = 5, [System.Runtime.Serialization.EnumMember(Value = @"LangCodeRfc3066")] LangCodeRfc3066 = 6, [System.Runtime.Serialization.EnumMember(Value = @"NlsDateFormat")] NlsDateFormat = 7, [System.Runtime.Serialization.EnumMember(Value = @"NlsTimeFormat")] NlsTimeFormat = 8, [System.Runtime.Serialization.EnumMember(Value = @"Installed")] Installed = 9, [System.Runtime.Serialization.EnumMember(Value = @"EnabledForLogin")] EnabledForLogin = 10, [System.Runtime.Serialization.EnumMember(Value = @"NlsCalendar")] NlsCalendar = 11, [System.Runtime.Serialization.EnumMember(Value = @"DictionaryUpdate")] DictionaryUpdate = 12, [System.Runtime.Serialization.EnumMember(Value = @"ShortDate")] ShortDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"MediumDate")] MediumDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"LongDate")] LongDate = 15, [System.Runtime.Serialization.EnumMember(Value = @"FullDate")] FullDate = 16, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous375 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 6, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment")] BlockedForPayment = 8, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment desc")] BlockedForPayment_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity")] OtherPayeeIdentity = 10, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity desc")] OtherPayeeIdentity_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 12, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate desc")] InterestTemplate_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 14, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate desc")] ReminderTemplate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay")] PaymentDelay = 16, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay desc")] PaymentDelay_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 18, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 20, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 22, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance desc")] DiscDaysTolerance_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed")] NettingAllowed = 24, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed desc")] NettingAllowed_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo")] FormatNo = 26, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo desc")] FormatNo_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 28, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice desc")] PaymentAdvice_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 30, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup desc")] DeductionGroup_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId")] CorporationId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId desc")] CorporationId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"MemberId")] MemberId = 34, [System.Runtime.Serialization.EnumMember(Value = @"MemberId desc")] MemberId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer")] SendReminderToPayer = 36, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer desc")] SendReminderToPayer_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer")] SendInterestInvToPayer = 38, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer desc")] SendInterestInvToPayer_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"RuleId")] RuleId = 40, [System.Runtime.Serialization.EnumMember(Value = @"RuleId desc")] RuleId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType")] PaymentReceiptType = 42, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType desc")] PaymentReceiptType_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 44, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient")] CheckRecipient = 46, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient desc")] CheckRecipient_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer")] SendStmtOfAccToPayer = 48, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer desc")] SendStmtOfAccToPayer_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 50, [System.Runtime.Serialization.EnumMember(Value = @"ArContact desc")] ArContact_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 52, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 54, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia desc")] OutputMedia_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod")] DefaultPaymentMethod = 56, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod desc")] DefaultPaymentMethod_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 58, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 60, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId")] NextPaymentMatchingId = 62, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId desc")] NextPaymentMatchingId_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay")] IsOneInvPerPay = 64, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay desc")] IsOneInvPerPay_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 66, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb")] IsOneInvPerPayDb = 68, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb desc")] IsOneInvPerPayDb_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup")] OtherPayerDeductionGroup = 70, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup desc")] OtherPayerDeductionGroup_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc")] OtherPayerDeductionGroupDesc = 72, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc desc")] OtherPayerDeductionGroupDesc_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId")] OtherPayerCorporationId = 74, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId desc")] OtherPayerCorporationId_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 76, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 78, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer desc")] OneTimeCustomer_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency")] ToleranceCurrency = 80, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency desc")] ToleranceCurrency_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate")] OldReminderTemplate = 82, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate desc")] OldReminderTemplate_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate")] ChangedReminderTemplate = 84, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate desc")] ChangedReminderTemplate_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 87, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous376 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 3, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment")] BlockedForPayment = 4, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity")] OtherPayeeIdentity = 5, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 7, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay")] PaymentDelay = 8, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 9, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 10, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 11, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed")] NettingAllowed = 12, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo")] FormatNo = 13, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 14, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId")] CorporationId = 16, [System.Runtime.Serialization.EnumMember(Value = @"MemberId")] MemberId = 17, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer")] SendReminderToPayer = 18, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer")] SendInterestInvToPayer = 19, [System.Runtime.Serialization.EnumMember(Value = @"RuleId")] RuleId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType")] PaymentReceiptType = 21, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient")] CheckRecipient = 23, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer")] SendStmtOfAccToPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod")] DefaultPaymentMethod = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 29, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 30, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId")] NextPaymentMatchingId = 31, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay")] IsOneInvPerPay = 32, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 33, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb")] IsOneInvPerPayDb = 34, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup")] OtherPayerDeductionGroup = 35, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc")] OtherPayerDeductionGroupDesc = 36, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId")] OtherPayerCorporationId = 37, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 38, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 39, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency")] ToleranceCurrency = 40, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate")] OldReminderTemplate = 41, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate")] ChangedReminderTemplate = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous377 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplateRef")] ReminderTemplateRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentityRef")] OtherPayeeIdentityRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplateRef")] InterestTemplateRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"ArContactRef")] ArContactRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroupRef")] DeductionGroupRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupRef")] OtherPayerDeductionGroupRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"CommMethodRef")] CommMethodRef = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous378 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 3, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment")] BlockedForPayment = 4, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity")] OtherPayeeIdentity = 5, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 7, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay")] PaymentDelay = 8, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 9, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 10, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 11, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed")] NettingAllowed = 12, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo")] FormatNo = 13, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 14, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId")] CorporationId = 16, [System.Runtime.Serialization.EnumMember(Value = @"MemberId")] MemberId = 17, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer")] SendReminderToPayer = 18, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer")] SendInterestInvToPayer = 19, [System.Runtime.Serialization.EnumMember(Value = @"RuleId")] RuleId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType")] PaymentReceiptType = 21, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient")] CheckRecipient = 23, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer")] SendStmtOfAccToPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod")] DefaultPaymentMethod = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 29, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 30, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId")] NextPaymentMatchingId = 31, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay")] IsOneInvPerPay = 32, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 33, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb")] IsOneInvPerPayDb = 34, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup")] OtherPayerDeductionGroup = 35, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc")] OtherPayerDeductionGroupDesc = 36, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId")] OtherPayerCorporationId = 37, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 38, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 39, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency")] ToleranceCurrency = 40, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate")] OldReminderTemplate = 41, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate")] ChangedReminderTemplate = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous379 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType desc")] CorrectionType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 10, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency desc")] ParallelAccCurrency_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 12, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp desc")] TimeStamp_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate desc")] RecalculationDate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod desc")] DefAmountMethod_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 18, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished desc")] CreationFinished_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 20, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod desc")] UseVouNoPeriod_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType desc")] ReverseVouCorrType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 24, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod desc")] PeriodClosingMethod_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 26, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal desc")] UserDefCal_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 28, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase desc")] ParallelBase_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 30, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType desc")] ParallelRateType_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 32, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany desc")] MasterCompany_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 34, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName desc")] MasterCompanyName_desc = 35, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous380 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 5, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 9, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 10, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 11, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 13, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 14, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 15, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous381 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 5, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 9, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 10, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 11, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 13, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 14, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 15, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous382 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 6, [System.Runtime.Serialization.EnumMember(Value = @"WayId desc")] WayId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentWay")] DefaultPaymentWay = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentWay desc")] DefaultPaymentWay_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ClientMapping")] ClientMapping = 10, [System.Runtime.Serialization.EnumMember(Value = @"ClientMapping desc")] ClientMapping_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"IsPayAddressConnected")] IsPayAddressConnected = 12, [System.Runtime.Serialization.EnumMember(Value = @"IsPayAddressConnected desc")] IsPayAddressConnected_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"BaseFormatId")] BaseFormatId = 14, [System.Runtime.Serialization.EnumMember(Value = @"BaseFormatId desc")] BaseFormatId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"FormatType")] FormatType = 16, [System.Runtime.Serialization.EnumMember(Value = @"FormatType desc")] FormatType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 18, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer desc")] OneTimeCustomer_desc = 19, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous383 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentWay")] DefaultPaymentWay = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClientMapping")] ClientMapping = 5, [System.Runtime.Serialization.EnumMember(Value = @"IsPayAddressConnected")] IsPayAddressConnected = 6, [System.Runtime.Serialization.EnumMember(Value = @"BaseFormatId")] BaseFormatId = 7, [System.Runtime.Serialization.EnumMember(Value = @"FormatType")] FormatType = 8, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous384 { [System.Runtime.Serialization.EnumMember(Value = @"WayIdRef")] WayIdRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous385 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentWay")] DefaultPaymentWay = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClientMapping")] ClientMapping = 5, [System.Runtime.Serialization.EnumMember(Value = @"IsPayAddressConnected")] IsPayAddressConnected = 6, [System.Runtime.Serialization.EnumMember(Value = @"BaseFormatId")] BaseFormatId = 7, [System.Runtime.Serialization.EnumMember(Value = @"FormatType")] FormatType = 8, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous386 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 6, [System.Runtime.Serialization.EnumMember(Value = @"WayId desc")] WayId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 10, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAddress")] DefaultAddress = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAddress desc")] DefaultAddress_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 14, [System.Runtime.Serialization.EnumMember(Value = @"Account desc")] Account_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Data1")] Data1 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Data1 desc")] Data1_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Data2")] Data2 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Data2 desc")] Data2_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Data3")] Data3 = 20, [System.Runtime.Serialization.EnumMember(Value = @"Data3 desc")] Data3_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Data4")] Data4 = 22, [System.Runtime.Serialization.EnumMember(Value = @"Data4 desc")] Data4_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"Data5")] Data5 = 24, [System.Runtime.Serialization.EnumMember(Value = @"Data5 desc")] Data5_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"Data6")] Data6 = 26, [System.Runtime.Serialization.EnumMember(Value = @"Data6 desc")] Data6_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Data7")] Data7 = 28, [System.Runtime.Serialization.EnumMember(Value = @"Data7 desc")] Data7_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Data8")] Data8 = 30, [System.Runtime.Serialization.EnumMember(Value = @"Data8 desc")] Data8_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Data9")] Data9 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Data9 desc")] Data9_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Data10")] Data10 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Data10 desc")] Data10_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Data11")] Data11 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Data11 desc")] Data11_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Data12")] Data12 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Data12 desc")] Data12_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Data13")] Data13 = 40, [System.Runtime.Serialization.EnumMember(Value = @"Data13 desc")] Data13_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Data14")] Data14 = 42, [System.Runtime.Serialization.EnumMember(Value = @"Data14 desc")] Data14_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"Data15")] Data15 = 44, [System.Runtime.Serialization.EnumMember(Value = @"Data15 desc")] Data15_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"Data16")] Data16 = 46, [System.Runtime.Serialization.EnumMember(Value = @"Data16 desc")] Data16_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"Data17")] Data17 = 48, [System.Runtime.Serialization.EnumMember(Value = @"Data17 desc")] Data17_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"Data18")] Data18 = 50, [System.Runtime.Serialization.EnumMember(Value = @"Data18 desc")] Data18_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"Data18Db")] Data18Db = 52, [System.Runtime.Serialization.EnumMember(Value = @"Data18Db desc")] Data18Db_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"Data19")] Data19 = 54, [System.Runtime.Serialization.EnumMember(Value = @"Data19 desc")] Data19_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"Data19Db")] Data19Db = 56, [System.Runtime.Serialization.EnumMember(Value = @"Data19Db desc")] Data19Db_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Data20")] Data20 = 58, [System.Runtime.Serialization.EnumMember(Value = @"Data20 desc")] Data20_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"Data20Db")] Data20Db = 60, [System.Runtime.Serialization.EnumMember(Value = @"Data20Db desc")] Data20Db_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"Data21")] Data21 = 62, [System.Runtime.Serialization.EnumMember(Value = @"Data21 desc")] Data21_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"Data22")] Data22 = 64, [System.Runtime.Serialization.EnumMember(Value = @"Data22 desc")] Data22_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"Data23")] Data23 = 66, [System.Runtime.Serialization.EnumMember(Value = @"Data23 desc")] Data23_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"Data24")] Data24 = 68, [System.Runtime.Serialization.EnumMember(Value = @"Data24 desc")] Data24_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"Data25")] Data25 = 70, [System.Runtime.Serialization.EnumMember(Value = @"Data25 desc")] Data25_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Data26")] Data26 = 72, [System.Runtime.Serialization.EnumMember(Value = @"Data26 desc")] Data26_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"Data27")] Data27 = 74, [System.Runtime.Serialization.EnumMember(Value = @"Data27 desc")] Data27_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"Data28")] Data28 = 76, [System.Runtime.Serialization.EnumMember(Value = @"Data28 desc")] Data28_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"Data29")] Data29 = 78, [System.Runtime.Serialization.EnumMember(Value = @"Data29 desc")] Data29_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"Data30")] Data30 = 80, [System.Runtime.Serialization.EnumMember(Value = @"Data30 desc")] Data30_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"Data31")] Data31 = 82, [System.Runtime.Serialization.EnumMember(Value = @"Data31 desc")] Data31_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"Data32")] Data32 = 84, [System.Runtime.Serialization.EnumMember(Value = @"Data32 desc")] Data32_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"Data33")] Data33 = 86, [System.Runtime.Serialization.EnumMember(Value = @"Data33 desc")] Data33_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"Data34")] Data34 = 88, [System.Runtime.Serialization.EnumMember(Value = @"Data34 desc")] Data34_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"Data35")] Data35 = 90, [System.Runtime.Serialization.EnumMember(Value = @"Data35 desc")] Data35_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Data36")] Data36 = 92, [System.Runtime.Serialization.EnumMember(Value = @"Data36 desc")] Data36_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"Data37")] Data37 = 94, [System.Runtime.Serialization.EnumMember(Value = @"Data37 desc")] Data37_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"Data38")] Data38 = 96, [System.Runtime.Serialization.EnumMember(Value = @"Data38 desc")] Data38_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"Data39")] Data39 = 98, [System.Runtime.Serialization.EnumMember(Value = @"Data39 desc")] Data39_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"Data40")] Data40 = 100, [System.Runtime.Serialization.EnumMember(Value = @"Data40 desc")] Data40_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"Data41")] Data41 = 102, [System.Runtime.Serialization.EnumMember(Value = @"Data41 desc")] Data41_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"BicCode")] BicCode = 104, [System.Runtime.Serialization.EnumMember(Value = @"BicCode desc")] BicCode_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 106, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"MappingType")] MappingType = 108, [System.Runtime.Serialization.EnumMember(Value = @"MappingType desc")] MappingType_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidated")] BankAccountValidated = 110, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidated desc")] BankAccountValidated_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidDate")] BankAccountValidDate = 112, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidDate desc")] BankAccountValidDate_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"OneTimePartnerName")] OneTimePartnerName = 114, [System.Runtime.Serialization.EnumMember(Value = @"OneTimePartnerName desc")] OneTimePartnerName_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 116, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer desc")] OneTimeCustomer_desc = 117, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous387 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAddress")] DefaultAddress = 6, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 7, [System.Runtime.Serialization.EnumMember(Value = @"Data1")] Data1 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Data2")] Data2 = 9, [System.Runtime.Serialization.EnumMember(Value = @"Data3")] Data3 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Data4")] Data4 = 11, [System.Runtime.Serialization.EnumMember(Value = @"Data5")] Data5 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Data6")] Data6 = 13, [System.Runtime.Serialization.EnumMember(Value = @"Data7")] Data7 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Data8")] Data8 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Data9")] Data9 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Data10")] Data10 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Data11")] Data11 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Data12")] Data12 = 19, [System.Runtime.Serialization.EnumMember(Value = @"Data13")] Data13 = 20, [System.Runtime.Serialization.EnumMember(Value = @"Data14")] Data14 = 21, [System.Runtime.Serialization.EnumMember(Value = @"Data15")] Data15 = 22, [System.Runtime.Serialization.EnumMember(Value = @"Data16")] Data16 = 23, [System.Runtime.Serialization.EnumMember(Value = @"Data17")] Data17 = 24, [System.Runtime.Serialization.EnumMember(Value = @"Data18")] Data18 = 25, [System.Runtime.Serialization.EnumMember(Value = @"Data18Db")] Data18Db = 26, [System.Runtime.Serialization.EnumMember(Value = @"Data19")] Data19 = 27, [System.Runtime.Serialization.EnumMember(Value = @"Data19Db")] Data19Db = 28, [System.Runtime.Serialization.EnumMember(Value = @"Data20")] Data20 = 29, [System.Runtime.Serialization.EnumMember(Value = @"Data20Db")] Data20Db = 30, [System.Runtime.Serialization.EnumMember(Value = @"Data21")] Data21 = 31, [System.Runtime.Serialization.EnumMember(Value = @"Data22")] Data22 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Data23")] Data23 = 33, [System.Runtime.Serialization.EnumMember(Value = @"Data24")] Data24 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Data25")] Data25 = 35, [System.Runtime.Serialization.EnumMember(Value = @"Data26")] Data26 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Data27")] Data27 = 37, [System.Runtime.Serialization.EnumMember(Value = @"Data28")] Data28 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Data29")] Data29 = 39, [System.Runtime.Serialization.EnumMember(Value = @"Data30")] Data30 = 40, [System.Runtime.Serialization.EnumMember(Value = @"Data31")] Data31 = 41, [System.Runtime.Serialization.EnumMember(Value = @"Data32")] Data32 = 42, [System.Runtime.Serialization.EnumMember(Value = @"Data33")] Data33 = 43, [System.Runtime.Serialization.EnumMember(Value = @"Data34")] Data34 = 44, [System.Runtime.Serialization.EnumMember(Value = @"Data35")] Data35 = 45, [System.Runtime.Serialization.EnumMember(Value = @"Data36")] Data36 = 46, [System.Runtime.Serialization.EnumMember(Value = @"Data37")] Data37 = 47, [System.Runtime.Serialization.EnumMember(Value = @"Data38")] Data38 = 48, [System.Runtime.Serialization.EnumMember(Value = @"Data39")] Data39 = 49, [System.Runtime.Serialization.EnumMember(Value = @"Data40")] Data40 = 50, [System.Runtime.Serialization.EnumMember(Value = @"Data41")] Data41 = 51, [System.Runtime.Serialization.EnumMember(Value = @"BicCode")] BicCode = 52, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 53, [System.Runtime.Serialization.EnumMember(Value = @"MappingType")] MappingType = 54, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidated")] BankAccountValidated = 55, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidDate")] BankAccountValidDate = 56, [System.Runtime.Serialization.EnumMember(Value = @"OneTimePartnerName")] OneTimePartnerName = 57, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 58, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous388 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"WayId")] WayId = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAddress")] DefaultAddress = 6, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 7, [System.Runtime.Serialization.EnumMember(Value = @"Data1")] Data1 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Data2")] Data2 = 9, [System.Runtime.Serialization.EnumMember(Value = @"Data3")] Data3 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Data4")] Data4 = 11, [System.Runtime.Serialization.EnumMember(Value = @"Data5")] Data5 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Data6")] Data6 = 13, [System.Runtime.Serialization.EnumMember(Value = @"Data7")] Data7 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Data8")] Data8 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Data9")] Data9 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Data10")] Data10 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Data11")] Data11 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Data12")] Data12 = 19, [System.Runtime.Serialization.EnumMember(Value = @"Data13")] Data13 = 20, [System.Runtime.Serialization.EnumMember(Value = @"Data14")] Data14 = 21, [System.Runtime.Serialization.EnumMember(Value = @"Data15")] Data15 = 22, [System.Runtime.Serialization.EnumMember(Value = @"Data16")] Data16 = 23, [System.Runtime.Serialization.EnumMember(Value = @"Data17")] Data17 = 24, [System.Runtime.Serialization.EnumMember(Value = @"Data18")] Data18 = 25, [System.Runtime.Serialization.EnumMember(Value = @"Data18Db")] Data18Db = 26, [System.Runtime.Serialization.EnumMember(Value = @"Data19")] Data19 = 27, [System.Runtime.Serialization.EnumMember(Value = @"Data19Db")] Data19Db = 28, [System.Runtime.Serialization.EnumMember(Value = @"Data20")] Data20 = 29, [System.Runtime.Serialization.EnumMember(Value = @"Data20Db")] Data20Db = 30, [System.Runtime.Serialization.EnumMember(Value = @"Data21")] Data21 = 31, [System.Runtime.Serialization.EnumMember(Value = @"Data22")] Data22 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Data23")] Data23 = 33, [System.Runtime.Serialization.EnumMember(Value = @"Data24")] Data24 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Data25")] Data25 = 35, [System.Runtime.Serialization.EnumMember(Value = @"Data26")] Data26 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Data27")] Data27 = 37, [System.Runtime.Serialization.EnumMember(Value = @"Data28")] Data28 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Data29")] Data29 = 39, [System.Runtime.Serialization.EnumMember(Value = @"Data30")] Data30 = 40, [System.Runtime.Serialization.EnumMember(Value = @"Data31")] Data31 = 41, [System.Runtime.Serialization.EnumMember(Value = @"Data32")] Data32 = 42, [System.Runtime.Serialization.EnumMember(Value = @"Data33")] Data33 = 43, [System.Runtime.Serialization.EnumMember(Value = @"Data34")] Data34 = 44, [System.Runtime.Serialization.EnumMember(Value = @"Data35")] Data35 = 45, [System.Runtime.Serialization.EnumMember(Value = @"Data36")] Data36 = 46, [System.Runtime.Serialization.EnumMember(Value = @"Data37")] Data37 = 47, [System.Runtime.Serialization.EnumMember(Value = @"Data38")] Data38 = 48, [System.Runtime.Serialization.EnumMember(Value = @"Data39")] Data39 = 49, [System.Runtime.Serialization.EnumMember(Value = @"Data40")] Data40 = 50, [System.Runtime.Serialization.EnumMember(Value = @"Data41")] Data41 = 51, [System.Runtime.Serialization.EnumMember(Value = @"BicCode")] BicCode = 52, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 53, [System.Runtime.Serialization.EnumMember(Value = @"MappingType")] MappingType = 54, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidated")] BankAccountValidated = 55, [System.Runtime.Serialization.EnumMember(Value = @"BankAccountValidDate")] BankAccountValidDate = 56, [System.Runtime.Serialization.EnumMember(Value = @"OneTimePartnerName")] OneTimePartnerName = 57, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 58, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous389 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 6, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber")] CreditNumber = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber desc")] CreditNumber_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating")] CreditRating = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating desc")] CreditRating_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment")] AvgDaysForPayment = 14, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment desc")] AvgDaysForPayment_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments")] CreditComments = 16, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments desc")] CreditComments_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 18, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode desc")] CreditAnalystCode_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 20, [System.Runtime.Serialization.EnumMember(Value = @"MessageType desc")] MessageType_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 24, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock desc")] CreditBlock_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate desc")] NextReviewDate_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 28, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist desc")] CorpCreditRelationExist_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType")] CreditRelationshipType = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType desc")] CreditRelationshipType_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 32, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity")] ParentIdentity = 34, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity desc")] ParentIdentity_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays")] AllowedDueDays = 36, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays desc")] AllowedDueDays_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount")] AllowedDueAmount = 38, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount desc")] AllowedDueAmount_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType")] OldCreditRelationshipType = 40, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType desc")] OldCreditRelationshipType_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous390 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber")] CreditNumber = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating")] CreditRating = 6, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment")] AvgDaysForPayment = 7, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments")] CreditComments = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 12, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType")] CreditRelationshipType = 15, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity")] ParentIdentity = 17, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays")] AllowedDueDays = 18, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount")] AllowedDueAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType")] OldCreditRelationshipType = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous391 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCodeRef")] CreditAnalystCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageTypeRef")] MessageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompanyRef")] ParentCompanyRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentityRef")] ParentIdentityRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"CompanyInvoiceInfoRef")] CompanyInvoiceInfoRef = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous392 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber")] CreditNumber = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating")] CreditRating = 6, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment")] AvgDaysForPayment = 7, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments")] CreditComments = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 12, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType")] CreditRelationshipType = 15, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity")] ParentIdentity = 17, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays")] AllowedDueDays = 18, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount")] AllowedDueAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType")] OldCreditRelationshipType = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous393 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode desc")] CreditAnalystCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 6, [System.Runtime.Serialization.EnumMember(Value = @"Manager desc")] Manager_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ManagerDescription")] ManagerDescription = 8, [System.Runtime.Serialization.EnumMember(Value = @"ManagerDescription desc")] ManagerDescription_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Position")] Position = 10, [System.Runtime.Serialization.EnumMember(Value = @"Position desc")] Position_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous394 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 3, [System.Runtime.Serialization.EnumMember(Value = @"ManagerDescription")] ManagerDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Position")] Position = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous395 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 3, [System.Runtime.Serialization.EnumMember(Value = @"ManagerDescription")] ManagerDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Position")] Position = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous396 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany desc")] ChildCompany_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity")] ChildIdentity = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity desc")] ChildIdentity_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous397 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity")] ChildIdentity = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous398 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompanyRef")] ChildCompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentityRef")] ChildIdentityRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCreditInfoRef")] CustomerCreditInfoRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous399 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity")] ChildIdentity = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous400 { [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId")] BusinessObjectId = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId desc")] BusinessObjectId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType")] BusinessObjectType = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType desc")] BusinessObjectType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId desc")] RepresentativeId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative")] MainRepresentative = 6, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative desc")] MainRepresentative_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType desc")] RepresentativeType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 10, [System.Runtime.Serialization.EnumMember(Value = @"Role desc")] Role_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"RepImage")] RepImage = 12, [System.Runtime.Serialization.EnumMember(Value = @"RepImage desc")] RepImage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType")] ImageMimeType = 14, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType desc")] ImageMimeType_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone")] RepPhone = 16, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone desc")] RepPhone_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail")] RepEmail = 18, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail desc")] RepEmail_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile")] RepMobile = 20, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile desc")] RepMobile_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous401 { [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId")] BusinessObjectId = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType")] BusinessObjectType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 2, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative")] MainRepresentative = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 5, [System.Runtime.Serialization.EnumMember(Value = @"RepImage")] RepImage = 6, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType")] ImageMimeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone")] RepPhone = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail")] RepEmail = 9, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile")] RepMobile = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous402 { [System.Runtime.Serialization.EnumMember(Value = @"RepLovRef")] RepLovRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous403 { [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId")] BusinessObjectId = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType")] BusinessObjectType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 2, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative")] MainRepresentative = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 5, [System.Runtime.Serialization.EnumMember(Value = @"RepImage")] RepImage = 6, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType")] ImageMimeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone")] RepPhone = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail")] RepEmail = 9, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile")] RepMobile = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous404 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany desc")] ChildCompany_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory")] ChildCategory = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory desc")] ChildCategory_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 6, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous405 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory")] ChildCategory = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous406 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompanyRef")] ChildCompanyRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous407 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory")] ChildCategory = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous408 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms desc")] DeliveryTerms_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode desc")] DistrictCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode desc")] RegionCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode desc")] ShipViaCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Contact")] Contact = 8, [System.Runtime.Serialization.EnumMember(Value = @"Contact desc")] Contact_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 10, [System.Runtime.Serialization.EnumMember(Value = @"RouteId desc")] RouteId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTime")] DeliveryTime = 12, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTime desc")] DeliveryTime_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentUnconStruct")] ShipmentUnconStruct = 14, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentUnconStruct desc")] ShipmentUnconStruct_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"DelTermsLocation")] DelTermsLocation = 16, [System.Runtime.Serialization.EnumMember(Value = @"DelTermsLocation desc")] DelTermsLocation_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustCalendarId")] CustCalendarId = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustCalendarId desc")] CustCalendarId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 20, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType desc")] ShipmentType_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 24, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 26, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt desc")] IntrastatExempt_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 28, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer desc")] InternalCustomer_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 30, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"IsDeliveryAddress")] IsDeliveryAddress = 32, [System.Runtime.Serialization.EnumMember(Value = @"IsDeliveryAddress desc")] IsDeliveryAddress_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 34, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 35, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous409 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"Contact")] Contact = 4, [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTime")] DeliveryTime = 6, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentUnconStruct")] ShipmentUnconStruct = 7, [System.Runtime.Serialization.EnumMember(Value = @"DelTermsLocation")] DelTermsLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"CustCalendarId")] CustCalendarId = 9, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 12, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 13, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 15, [System.Runtime.Serialization.EnumMember(Value = @"IsDeliveryAddress")] IsDeliveryAddress = 16, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous410 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTermsRef")] DeliveryTermsRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCodeRef")] ShipViaCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"RouteIdRef")] RouteIdRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustCalendarIdRef")] CustCalendarIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"ContactRef")] ContactRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"RegionCodeRef")] RegionCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCodeRef")] DistrictCodeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentTypeRef")] ShipmentTypeRef = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous411 { [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTerms")] DeliveryTerms = 0, [System.Runtime.Serialization.EnumMember(Value = @"DistrictCode")] DistrictCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"RegionCode")] RegionCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ShipViaCode")] ShipViaCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"Contact")] Contact = 4, [System.Runtime.Serialization.EnumMember(Value = @"RouteId")] RouteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTime")] DeliveryTime = 6, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentUnconStruct")] ShipmentUnconStruct = 7, [System.Runtime.Serialization.EnumMember(Value = @"DelTermsLocation")] DelTermsLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"CustCalendarId")] CustCalendarId = 9, [System.Runtime.Serialization.EnumMember(Value = @"ShipmentType")] ShipmentType = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 12, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 13, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 15, [System.Runtime.Serialization.EnumMember(Value = @"IsDeliveryAddress")] IsDeliveryAddress = 16, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous412 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"OutputType desc")] OutputType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 2, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 6, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId desc")] PhraseId_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous413 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 2, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous414 { [System.Runtime.Serialization.EnumMember(Value = @"PhraseIdRef")] PhraseIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"OutputTypeRef")] OutputTypeRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous415 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 2, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous416 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 4, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax desc")] UsePriceInclTax_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous417 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous418 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous419 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous420 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"LineNo")] LineNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"LineNo desc")] LineNo_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth")] DayOfMonth = 4, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth desc")] DayOfMonth_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd")] MonthEnd = 6, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd desc")] MonthEnd_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous421 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"LineNo")] LineNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth")] DayOfMonth = 2, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd")] MonthEnd = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous422 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"LineNo")] LineNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth")] DayOfMonth = 2, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd")] MonthEnd = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous423 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection")] AgreementSelection = 4, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection desc")] AgreementSelection_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous424 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection")] AgreementSelection = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous425 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous426 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection")] AgreementSelection = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous427 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId desc")] SalesPriceGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo desc")] PriceListNo_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList")] PreferredPriceList = 6, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList desc")] PreferredPriceList_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc")] SalesPriceGroupDesc = 8, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc desc")] SalesPriceGroupDesc_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous428 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList")] PreferredPriceList = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc")] SalesPriceGroupDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous429 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceListRef")] SalesPriceListRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupIdRef")] SalesPriceGroupIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNoRef")] PriceListNoRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous430 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList")] PreferredPriceList = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc")] SalesPriceGroupDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous431 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous432 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous433 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverRef")] CommissionReceiverRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous434 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous435 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType desc")] ChargeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount desc")] ChargeAmount_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax desc")] ChargeAmountInclTax_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty")] ChargedQty = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty desc")] ChargedQty_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 10, [System.Runtime.Serialization.EnumMember(Value = @"Charge desc")] Charge_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge desc")] PrintCollectCharge_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 14, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType desc")] PrintChargeType_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 16, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt desc")] IntrastatExempt_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 18, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost desc")] ChargeCost_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 20, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent desc")] ChargeCostPercent_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 26, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup desc")] ChargeGroup_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 28, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode desc")] TaxCode_desc = 31, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous436 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty")] ChargedQty = 4, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 5, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 6, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 13, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous437 { [System.Runtime.Serialization.EnumMember(Value = @"CustOrdCustomerRef")] CustOrdCustomerRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ContractRef")] ContractRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeRef")] ChargeTypeRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupRef")] ChargeGroupRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeRef")] TaxCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"PriceInclTaxRef")] PriceInclTaxRef = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous438 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty")] ChargedQty = 4, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 5, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 6, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 13, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous439 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId")] CarrierAccountId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId desc")] CarrierAccountId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 6, [System.Runtime.Serialization.EnumMember(Value = @"Account desc")] Account_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault desc")] CustomerDefault_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 12, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous440 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId")] CarrierAccountId = 1, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous441 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierIdRef")] CarrierIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous442 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId")] CarrierAccountId = 1, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous443 { [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceVendorNo")] InvoiceVendorNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceVendorNo desc")] InvoiceVendorNo_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 6, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId desc")] FreightProviderId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ScacCode")] ScacCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"ScacCode desc")] ScacCode_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous444 { [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceVendorNo")] InvoiceVendorNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 3, [System.Runtime.Serialization.EnumMember(Value = @"ScacCode")] ScacCode = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous445 { [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceVendorNo")] InvoiceVendorNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"FreightProviderId")] FreightProviderId = 3, [System.Runtime.Serialization.EnumMember(Value = @"ScacCode")] ScacCode = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous446 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation desc")] EanLocation_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov desc")] AddressLov_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 22, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact desc")] SecondaryContact_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact desc")] PrimaryContact_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 28, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 30, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 40, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 42, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 44, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 46, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 48, [System.Runtime.Serialization.EnumMember(Value = @"InCity desc")] InCity_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode")] JurisdictionCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode desc")] JurisdictionCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 52, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 54, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia desc")] OutputMedia_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId")] EndCustomerId = 56, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId desc")] EndCustomerId_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId")] EndCustAddrId = 58, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId desc")] EndCustAddrId_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch")] CustomerBranch = 60, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch desc")] CustomerBranch_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 62, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc desc")] CountryDesc_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory")] EndCustomerCategory = 64, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory desc")] EndCustomerCategory_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist")] DeliveryTypeExist = 66, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist desc")] DeliveryTypeExist_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb")] OneTimeDb = 68, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb desc")] OneTimeDb_desc = 69, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous447 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 9, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 10, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 11, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 19, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 23, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 24, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode")] JurisdictionCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId")] EndCustomerId = 28, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId")] EndCustAddrId = 29, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch")] CustomerBranch = 30, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 31, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory")] EndCustomerCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist")] DeliveryTypeExist = 33, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb")] OneTimeDb = 34, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous448 { [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerIdRef")] EndCustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrIdRef")] EndCustAddrIdRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous449 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 9, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 10, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 11, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 19, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 23, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 24, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode")] JurisdictionCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId")] EndCustomerId = 28, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId")] EndCustAddrId = 29, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch")] CustomerBranch = 30, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 31, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory")] EndCustomerCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist")] DeliveryTypeExist = 33, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb")] OneTimeDb = 34, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous450 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId")] ThirdPartyId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId desc")] ThirdPartyId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 6, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 20, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 24, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 26, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 28, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 32, [System.Runtime.Serialization.EnumMember(Value = @"Account desc")] Account_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 34, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 36, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault desc")] CustomerDefault_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 38, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 40, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous451 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId")] ThirdPartyId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 9, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 10, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 11, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 12, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 13, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 16, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 18, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous452 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"IsoCountryRef")] IsoCountryRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CarrierIdRef")] CarrierIdRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous453 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId")] ThirdPartyId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 9, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 10, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 11, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 12, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 13, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 16, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 18, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous454 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous455 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous456 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous457 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OurId")] OurId = 4, [System.Runtime.Serialization.EnumMember(Value = @"OurId desc")] OurId_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous458 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"OurId")] OurId = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous459 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous460 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"OurId")] OurId = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous461 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Guid")] Guid = 4, [System.Runtime.Serialization.EnumMember(Value = @"Guid desc")] Guid_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 6, [System.Runtime.Serialization.EnumMember(Value = @"Role desc")] Role_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 8, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary desc")] CustomerPrimary_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary")] CustomerSecondary = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary desc")] CustomerSecondary_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary")] AddressPrimary = 12, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary desc")] AddressPrimary_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary")] AddressSecondary = 14, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary desc")] AddressSecondary_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 16, [System.Runtime.Serialization.EnumMember(Value = @"Created desc")] Created_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Changed")] Changed = 18, [System.Runtime.Serialization.EnumMember(Value = @"Changed desc")] Changed_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 20, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress")] CustomerAddress = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress desc")] CustomerAddress_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr")] ConnectAllCustAddr = 24, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr desc")] ConnectAllCustAddr_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress")] ContactAddress = 26, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress desc")] ContactAddress_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy")] CreatedBy = 28, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy desc")] CreatedBy_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy")] ChangedBy = 30, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy desc")] ChangedBy_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects")] BlockedForCrmObjects = 32, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects desc")] BlockedForCrmObjects_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest")] PersonalInterest = 34, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest desc")] PersonalInterest_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest")] CampaignInterest = 36, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest desc")] CampaignInterest_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType")] DecisionPowerType = 38, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType desc")] DecisionPowerType_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Department")] Department = 40, [System.Runtime.Serialization.EnumMember(Value = @"Department desc")] Department_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 42, [System.Runtime.Serialization.EnumMember(Value = @"Manager desc")] Manager_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid")] ManagerGuid = 44, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid desc")] ManagerGuid_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress")] ManagerCustAddress = 46, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress desc")] ManagerCustAddress_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 48, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 50, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep desc")] UpdateMainRep_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 52, [System.Runtime.Serialization.EnumMember(Value = @"Phone desc")] Phone_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 54, [System.Runtime.Serialization.EnumMember(Value = @"Mobile desc")] Mobile_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 56, [System.Runtime.Serialization.EnumMember(Value = @"Email desc")] Email_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 58, [System.Runtime.Serialization.EnumMember(Value = @"Fax desc")] Fax_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 60, [System.Runtime.Serialization.EnumMember(Value = @"Pager desc")] Pager_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 62, [System.Runtime.Serialization.EnumMember(Value = @"Intercom desc")] Intercom_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 64, [System.Runtime.Serialization.EnumMember(Value = @"Www desc")] Www_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb")] ConnectAllCustAddrDb = 66, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb desc")] ConnectAllCustAddrDb_desc = 67, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous462 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Guid")] Guid = 2, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary")] CustomerSecondary = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary")] AddressPrimary = 6, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary")] AddressSecondary = 7, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 8, [System.Runtime.Serialization.EnumMember(Value = @"Changed")] Changed = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress")] CustomerAddress = 11, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr")] ConnectAllCustAddr = 12, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress")] ContactAddress = 13, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy")] CreatedBy = 14, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy")] ChangedBy = 15, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects")] BlockedForCrmObjects = 16, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest")] PersonalInterest = 17, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest")] CampaignInterest = 18, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType")] DecisionPowerType = 19, [System.Runtime.Serialization.EnumMember(Value = @"Department")] Department = 20, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 21, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid")] ManagerGuid = 22, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress")] ManagerCustAddress = 23, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 26, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 27, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 28, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 29, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 30, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 31, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 32, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb")] ConnectAllCustAddrDb = 33, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous463 { [System.Runtime.Serialization.EnumMember(Value = @"PersonIdRef")] PersonIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddressRef")] CustomerAddressRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddressRef")] ContactAddressRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous464 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Guid")] Guid = 2, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary")] CustomerSecondary = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary")] AddressPrimary = 6, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary")] AddressSecondary = 7, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 8, [System.Runtime.Serialization.EnumMember(Value = @"Changed")] Changed = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress")] CustomerAddress = 11, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr")] ConnectAllCustAddr = 12, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress")] ContactAddress = 13, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy")] CreatedBy = 14, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy")] ChangedBy = 15, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects")] BlockedForCrmObjects = 16, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest")] PersonalInterest = 17, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest")] CampaignInterest = 18, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType")] DecisionPowerType = 19, [System.Runtime.Serialization.EnumMember(Value = @"Department")] Department = 20, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 21, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid")] ManagerGuid = 22, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress")] ManagerCustAddress = 23, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 26, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 27, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 28, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 29, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 30, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 31, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 32, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb")] ConnectAllCustAddrDb = 33, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous465 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode desc")] MediaCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 4, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass desc")] MessageClass_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 10, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo desc")] SequenceNo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 12, [System.Runtime.Serialization.EnumMember(Value = @"Locale desc")] Locale_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous466 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 4, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous467 { [System.Runtime.Serialization.EnumMember(Value = @"MessageClassRef")] MessageClassRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCodeRef")] MediaCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressRef")] AddressRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"LocaleRef")] LocaleRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous468 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 4, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous469 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressTypeCode")] AddressTypeCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressTypeCode desc")] AddressTypeCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress desc")] DefAddress_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous470 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressTypeCode")] AddressTypeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous471 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressTypeCode")] AddressTypeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefAddress")] DefAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous472 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ResidentialAddress")] ResidentialAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"ResidentialAddress desc")] ResidentialAddress_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous473 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ResidentialAddress")] ResidentialAddress = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous474 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ResidentialAddress")] ResidentialAddress = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous475 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Id desc")] Id_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous476 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous477 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous478 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Id desc")] Id_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous479 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous480 { [System.Runtime.Serialization.EnumMember(Value = @"Id")] Id = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous481 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 10, [System.Runtime.Serialization.EnumMember(Value = @"PackageName desc")] PackageName_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 12, [System.Runtime.Serialization.EnumMember(Value = @"EntityName desc")] EntityName_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 14, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName desc")] CallingProjectionName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 16, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote desc")] IsNewNote_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 18, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 20, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists desc")] NoteExists_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 22, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef desc")] ModifiedKeyRef_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous482 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous483 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous484 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous485 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous486 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RowNo")] RowNo = 10, [System.Runtime.Serialization.EnumMember(Value = @"RowNo desc")] RowNo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp")] Timestamp = 14, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp desc")] Timestamp_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Text")] Text = 16, [System.Runtime.Serialization.EnumMember(Value = @"Text desc")] Text_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource")] NoteSource = 18, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource desc")] NoteSource_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup")] Cleanup = 20, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup desc")] Cleanup_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous487 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"RowNo")] RowNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 6, [System.Runtime.Serialization.EnumMember(Value = @"Timestamp")] Timestamp = 7, [System.Runtime.Serialization.EnumMember(Value = @"Text")] Text = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteSource")] NoteSource = 9, [System.Runtime.Serialization.EnumMember(Value = @"Cleanup")] Cleanup = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous488 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous489 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 4, [System.Runtime.Serialization.EnumMember(Value = @"PackageName")] PackageName = 5, [System.Runtime.Serialization.EnumMember(Value = @"EntityName")] EntityName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CallingProjectionName")] CallingProjectionName = 7, [System.Runtime.Serialization.EnumMember(Value = @"IsNewNote")] IsNewNote = 8, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteExists")] NoteExists = 10, [System.Runtime.Serialization.EnumMember(Value = @"ModifiedKeyRef")] ModifiedKeyRef = 11, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer2 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous490 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 8, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 10, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous491 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous492 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"IdentityRef")] IdentityRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous493 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous494 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer3 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous495 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous496 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany desc")] ChildCompany_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity")] ChildIdentity = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity desc")] ChildIdentity_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous497 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentity")] ChildIdentity = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous498 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompanyRef")] ChildCompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildIdentityRef")] ChildIdentityRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCreditInfoRef")] CustomerCreditInfoRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous499 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous500 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous501 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType desc")] CorrectionType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 10, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency desc")] ParallelAccCurrency_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 12, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp desc")] TimeStamp_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate desc")] RecalculationDate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod desc")] DefAmountMethod_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 18, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished desc")] CreationFinished_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 20, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod desc")] UseVouNoPeriod_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType desc")] ReverseVouCorrType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 24, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod desc")] PeriodClosingMethod_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 26, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal desc")] UserDefCal_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 28, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase desc")] ParallelBase_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 30, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType desc")] ParallelRateType_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 32, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany desc")] MasterCompany_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 34, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName desc")] MasterCompanyName_desc = 35, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous502 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 5, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 9, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 10, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 11, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 13, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 14, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 15, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous503 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 20, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference desc")] IdentifierReference_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 22, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation desc")] IdentifierRefValidation_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 26, [System.Runtime.Serialization.EnumMember(Value = @"OneTime desc")] OneTime_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 30, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 34, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 36, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose desc")] ValidDataProcessingPurpose_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 38, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn desc")] VisibleDataSubConstColumn_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 40, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo desc")] CustomerLogo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 44, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 46, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc desc")] BusinessClassificationDesc_desc = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous504 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous505 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNoRef")] AssociationNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormRef")] CorporateFormRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageTypeRef")] CustomerTaxUsageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationRef")] BusinessClassificationRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous506 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 2, [System.Runtime.Serialization.EnumMember(Value = @"Turnover desc")] Turnover_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 6, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod desc")] YearEndPeriod_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 8, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount desc")] KeyAccount_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 10, [System.Runtime.Serialization.EnumMember(Value = @"SourceId desc")] SourceId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId desc")] PotentialId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId desc")] LoyaltyId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 16, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId desc")] EmployeeCountId_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 18, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId desc")] CompetitorId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 24, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 26, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 28, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId desc")] BusinessLeadId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 30, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 32, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb desc")] KeyAccountDb_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 34, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType desc")] ReferenceType_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 36, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName desc")] BusinessLeadName_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 38, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 40, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName desc")] MainRepresentativeName_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous507 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous508 { [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeRef")] MainRepresentativeRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrencyRef")] TurnoverCurrencyRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadRef")] BusinessLeadRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentAccountRef")] ParentAccountRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous509 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous510 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer4 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous511 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous512 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous513 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous514 { [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId")] BusinessObjectId = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId desc")] BusinessObjectId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType")] BusinessObjectType = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType desc")] BusinessObjectType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId desc")] RepresentativeId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative")] MainRepresentative = 6, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative desc")] MainRepresentative_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType desc")] RepresentativeType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 10, [System.Runtime.Serialization.EnumMember(Value = @"Role desc")] Role_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"RepImage")] RepImage = 12, [System.Runtime.Serialization.EnumMember(Value = @"RepImage desc")] RepImage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType")] ImageMimeType = 14, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType desc")] ImageMimeType_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone")] RepPhone = 16, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone desc")] RepPhone_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail")] RepEmail = 18, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail desc")] RepEmail_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile")] RepMobile = 20, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile desc")] RepMobile_desc = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous515 { [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectId")] BusinessObjectId = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessObjectType")] BusinessObjectType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 2, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentative")] MainRepresentative = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 5, [System.Runtime.Serialization.EnumMember(Value = @"RepImage")] RepImage = 6, [System.Runtime.Serialization.EnumMember(Value = @"ImageMimeType")] ImageMimeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepPhone")] RepPhone = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepEmail")] RepEmail = 9, [System.Runtime.Serialization.EnumMember(Value = @"RepMobile")] RepMobile = 10, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous516 { [System.Runtime.Serialization.EnumMember(Value = @"RepLovRef")] RepLovRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous517 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous518 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer5 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous519 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany desc")] ChildCompany_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory")] ChildCategory = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory desc")] ChildCategory_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 6, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous520 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompany")] ChildCompany = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChildCategory")] ChildCategory = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous521 { [System.Runtime.Serialization.EnumMember(Value = @"ChildCompanyRef")] ChildCompanyRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous522 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous523 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer6 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous524 { [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType desc")] RepresentativeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb")] RepresentativeTypeDb = 4, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb desc")] RepresentativeTypeDb_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 6, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 8, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId desc")] RepresentativeId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 10, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous525 { [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 0, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeType")] RepresentativeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeTypeDb")] RepresentativeTypeDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, [System.Runtime.Serialization.EnumMember(Value = @"RepresentativeId")] RepresentativeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous526 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber desc")] CurrencyNumber_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 6, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl desc")] UsedInAppl_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry desc")] DefaultCountry_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 10, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded desc")] SystemAdded_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous527 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 2, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous528 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"LeadId")] LeadId = 2, [System.Runtime.Serialization.EnumMember(Value = @"LeadId desc")] LeadId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount")] ExistingAccount = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount desc")] ExistingAccount_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 20, [System.Runtime.Serialization.EnumMember(Value = @"Turnover desc")] Turnover_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency")] TurnoverCurrency = 22, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency desc")] TurnoverCurrency_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId desc")] PotentialId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SourceId desc")] SourceId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId")] ProcessId = 28, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId desc")] ProcessId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"StageId")] StageId = 30, [System.Runtime.Serialization.EnumMember(Value = @"StageId desc")] StageId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Probability")] Probability = 32, [System.Runtime.Serialization.EnumMember(Value = @"Probability desc")] Probability_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact")] ExistingContact = 34, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact desc")] ExistingContact_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid")] CustomerContactGuid = 36, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid desc")] CustomerContactGuid_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName")] MainContactName = 38, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName desc")] MainContactName_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 42, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 44, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead")] MergeLead = 46, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead desc")] MergeLead_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact")] UpdateMainContact = 48, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact desc")] UpdateMainContact_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 50, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep desc")] UpdateMainRep_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses")] MergeAddresses = 52, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses desc")] MergeAddresses_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts")] MergeContacts = 54, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts desc")] MergeContacts_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities")] MergeActivities = 56, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities desc")] MergeActivities_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives")] MergeRepresentatives = 58, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives desc")] MergeRepresentatives_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess")] MergeAccess = 60, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess desc")] MergeAccess_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail")] MergeBusinessMail = 62, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail desc")] MergeBusinessMail_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 64, [System.Runtime.Serialization.EnumMember(Value = @"LastModified desc")] LastModified_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 66, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount")] ConvertedAccount = 68, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount desc")] ConvertedAccount_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 70, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 72, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 74, [System.Runtime.Serialization.EnumMember(Value = @"Email desc")] Email_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 76, [System.Runtime.Serialization.EnumMember(Value = @"Phone desc")] Phone_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 78, [System.Runtime.Serialization.EnumMember(Value = @"Mobile desc")] Mobile_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId")] MainPersonId = 80, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId desc")] MainPersonId_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"AccountName")] AccountName = 82, [System.Runtime.Serialization.EnumMember(Value = @"AccountName desc")] AccountName_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"ContactName")] ContactName = 84, [System.Runtime.Serialization.EnumMember(Value = @"ContactName desc")] ContactName_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader")] UpdateFromHeader = 86, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader desc")] UpdateFromHeader_desc = 87, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous529 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"LeadId")] LeadId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExistingAccount")] ExistingAccount = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 10, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrency")] TurnoverCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProcessId")] ProcessId = 14, [System.Runtime.Serialization.EnumMember(Value = @"StageId")] StageId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Probability")] Probability = 16, [System.Runtime.Serialization.EnumMember(Value = @"ExistingContact")] ExistingContact = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContactGuid")] CustomerContactGuid = 18, [System.Runtime.Serialization.EnumMember(Value = @"MainContactName")] MainContactName = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"MergeLead")] MergeLead = 23, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainContact")] UpdateMainContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"MergeAddresses")] MergeAddresses = 26, [System.Runtime.Serialization.EnumMember(Value = @"MergeContacts")] MergeContacts = 27, [System.Runtime.Serialization.EnumMember(Value = @"MergeActivities")] MergeActivities = 28, [System.Runtime.Serialization.EnumMember(Value = @"MergeRepresentatives")] MergeRepresentatives = 29, [System.Runtime.Serialization.EnumMember(Value = @"MergeAccess")] MergeAccess = 30, [System.Runtime.Serialization.EnumMember(Value = @"MergeBusinessMail")] MergeBusinessMail = 31, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 33, [System.Runtime.Serialization.EnumMember(Value = @"ConvertedAccount")] ConvertedAccount = 34, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 35, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 36, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 37, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 38, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainPersonId")] MainPersonId = 40, [System.Runtime.Serialization.EnumMember(Value = @"AccountName")] AccountName = 41, [System.Runtime.Serialization.EnumMember(Value = @"ContactName")] ContactName = 42, [System.Runtime.Serialization.EnumMember(Value = @"UpdateFromHeader")] UpdateFromHeader = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous530 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb")] CategoryDb = 4, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb desc")] CategoryDb_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 6, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous531 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CategoryDb")] CategoryDb = 2, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous532 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 8, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly desc")] ReadOnly_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 10, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 12, [System.Runtime.Serialization.EnumMember(Value = @"Label desc")] Label_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous533 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous534 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous535 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer7 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous536 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous537 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"OutputType desc")] OutputType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 2, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 6, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId desc")] PhraseId_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous538 { [System.Runtime.Serialization.EnumMember(Value = @"OutputType")] OutputType = 0, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 1, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 2, [System.Runtime.Serialization.EnumMember(Value = @"PhraseId")] PhraseId = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous539 { [System.Runtime.Serialization.EnumMember(Value = @"PhraseIdRef")] PhraseIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"OutputTypeRef")] OutputTypeRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous540 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous541 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ReadOnly")] ReadOnly = 4, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Label")] Label = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer8 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous542 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustRef desc")] CustRef_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort desc")] InvoiceSort_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 6, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval desc")] EdiAutoOrderApproval_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 8, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval desc")] EdiAutoChangeApproval_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode desc")] EdiAuthorizeCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 12, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel desc")] CustPartAcqValLevel_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText desc")] ReplicateDocText_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 18, [System.Runtime.Serialization.EnumMember(Value = @"MatchType desc")] MatchType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 20, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery desc")] HandlUnitAtCoDelivery_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 26, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 28, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder desc")] ReleaseInternalOrder_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 34, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 36, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines desc")] PrintDeliveredLines_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 38, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 40, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription desc")] CustomerGroupDescription_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay desc")] CustomerNoPay_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 44, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName desc")] CustomerNoPayName_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 46, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription desc")] CustPriceGroupDescription_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 52, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc desc")] MarketCodeDesc_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 54, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 56, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription desc")] DiscountTypeDescription_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 58, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 60, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc desc")] CreditCtrlGroupDesc_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 64, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 66, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 68, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer desc")] QuickRegisteredCustomer_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 70, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 72, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 74, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 76, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 78, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 80, [System.Runtime.Serialization.EnumMember(Value = @"CrStop desc")] CrStop_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 82, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 84, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer desc")] CustPartOwnerTransfer_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 88, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod desc")] CyclePeriod_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 90, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate desc")] LastIvcDate_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 92, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 94, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 96, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 98, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 100, [System.Runtime.Serialization.EnumMember(Value = @"DateDel desc")] DateDel_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 102, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 104, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf desc")] CheckSalesGrpDelivConf_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 106, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 108, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText desc")] DocumentText_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 110, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 112, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 114, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines desc")] SummarizedSourceLines_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 116, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges desc")] SummarizedFreightCharges_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 118, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax desc")] PrintAmountsInclTax_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 120, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 122, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies desc")] NoDelnoteCopies_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 124, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 126, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf desc")] EmailOrderConf_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 128, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice desc")] EmailInvoice_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 130, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser desc")] EdiAutoApprovalUser_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 132, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage desc")] SendChangeMessage_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 134, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend desc")] AutoDespatchAdvSend_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 136, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 138, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 140, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser desc")] RecAdvAutoApprovalUser_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 142, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 144, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser desc")] SbiAutoApprovalUser_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 146, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi desc")] UpdatePriceFromSbi_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 148, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 149, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 150, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 151, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 152, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts desc")] AllowAutoSubOfParts_desc = 153, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 154, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq desc")] B2bAutoCreateCoFromSq_desc = 155, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 156, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled desc")] PayledInstaled_desc = 157, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 158, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled desc")] PayledInstalled_desc = 159, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 160, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 161, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 162, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax desc")] PrintWithholdingTax_desc = 163, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous543 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous544 { [System.Runtime.Serialization.EnumMember(Value = @"PersonInfoRef")] PersonInfoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrpRef")] CustGrpRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayRef")] CustomerNoPayRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupIdRef")] CustPriceGroupIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustRefRef")] CustRefRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeRef")] MarketCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeRef")] DiscountTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupIdRef")] CreditControlGroupIdRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyRef")] HierarchyRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelRef")] HierarchyLevelRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCodeRef")] SalesmanCodeRef = 11, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSiteRef")] AcquisitionSiteRef = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderIdRef")] OrderIdRef = 13, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentIdRef")] ForwardAgentIdRef = 14, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCodeRef")] PrintControlCodeRef = 16, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUserRef")] EdiAutoApprovalUserRef = 17, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCodeRef")] EdiAuthorizeCodeRef = 18, [System.Runtime.Serialization.EnumMember(Value = @"EdiSiteRef")] EdiSiteRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUserRef")] RecAdvAutoApprovalUserRef = 20, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUserRef")] SbiAutoApprovalUserRef = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous545 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous546 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer9 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous547 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous548 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous549 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous550 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 4, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax desc")] UsePriceInclTax_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous551 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous552 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous553 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous554 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous555 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"LineNo")] LineNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"LineNo desc")] LineNo_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth")] DayOfMonth = 4, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth desc")] DayOfMonth_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd")] MonthEnd = 6, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd desc")] MonthEnd_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous556 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"LineNo")] LineNo = 1, [System.Runtime.Serialization.EnumMember(Value = @"DayOfMonth")] DayOfMonth = 2, [System.Runtime.Serialization.EnumMember(Value = @"MonthEnd")] MonthEnd = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous557 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous558 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer10 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous559 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection")] AgreementSelection = 4, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection desc")] AgreementSelection_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous560 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"AgreementSelection")] AgreementSelection = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous561 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous562 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous563 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous564 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId desc")] SalesPriceGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 4, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo desc")] PriceListNo_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList")] PreferredPriceList = 6, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList desc")] PreferredPriceList_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc")] SalesPriceGroupDesc = 8, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc desc")] SalesPriceGroupDesc_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous565 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupId")] SalesPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNo")] PriceListNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"PreferredPriceList")] PreferredPriceList = 3, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupDesc")] SalesPriceGroupDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous566 { [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceListRef")] SalesPriceListRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesPriceGroupIdRef")] SalesPriceGroupIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"PriceListNoRef")] PriceListNoRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous567 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous568 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer11 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous569 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous570 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous571 { [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiverRef")] CommissionReceiverRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous572 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous573 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous574 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType desc")] ChargeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount desc")] ChargeAmount_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax desc")] ChargeAmountInclTax_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty")] ChargedQty = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty desc")] ChargedQty_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 10, [System.Runtime.Serialization.EnumMember(Value = @"Charge desc")] Charge_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge desc")] PrintCollectCharge_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 14, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType desc")] PrintChargeType_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 16, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt desc")] IntrastatExempt_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 18, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost desc")] ChargeCost_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 20, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent desc")] ChargeCostPercent_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 26, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup desc")] ChargeGroup_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 28, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode desc")] TaxCode_desc = 31, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous575 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargedQty")] ChargedQty = 4, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 5, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 6, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 7, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 13, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous576 { [System.Runtime.Serialization.EnumMember(Value = @"CustOrdCustomerRef")] CustOrdCustomerRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ContractRef")] ContractRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeRef")] ChargeTypeRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroupRef")] ChargeGroupRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeRef")] TaxCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"PriceInclTaxRef")] PriceInclTaxRef = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous577 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous578 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer12 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous579 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName desc")] CustomerName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 8, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 10, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb desc")] DefaultAssortmentDb_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 14, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb desc")] LimitSalesToAssortmentsDb_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 16, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist desc")] SalesLimitationsForOtherAssortmentsExist_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous580 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous581 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentIdRef")] AssortmentIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandardRef")] ClassificationStandardRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous582 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous583 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer13 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous584 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 6, [System.Runtime.Serialization.EnumMember(Value = @"FirstName desc")] FirstName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 8, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName desc")] MiddleName_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 10, [System.Runtime.Serialization.EnumMember(Value = @"Prefix desc")] Prefix_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 12, [System.Runtime.Serialization.EnumMember(Value = @"LastName desc")] LastName_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 14, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName desc")] AlternativeName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 16, [System.Runtime.Serialization.EnumMember(Value = @"BirthName desc")] BirthName_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 18, [System.Runtime.Serialization.EnumMember(Value = @"Alias desc")] Alias_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 20, [System.Runtime.Serialization.EnumMember(Value = @"Initials desc")] Initials_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 22, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle")] JobTitle = 24, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle desc")] JobTitle_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 28, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 32, [System.Runtime.Serialization.EnumMember(Value = @"Protected desc")] Protected_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 34, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 36, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 38, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 40, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 42, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 44, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId desc")] PictureThumbnailId_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 46, [System.Runtime.Serialization.EnumMember(Value = @"Inactive desc")] Inactive_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 48, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers desc")] ContactCustomers_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 50, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers desc")] ContactSuppliers_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 52, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact desc")] CustomerContact_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 54, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs")] UpdateConBlockForCrmObjs = 56, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs desc")] UpdateConBlockForCrmObjs_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 58, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact desc")] SupplierContact_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 60, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier desc")] BlockedForUseSupplier_desc = 61, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous585 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 3, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 4, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 5, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 6, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 7, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 8, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 9, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 10, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 11, [System.Runtime.Serialization.EnumMember(Value = @"JobTitle")] JobTitle = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 17, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 19, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 20, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 21, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 22, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 23, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 24, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 27, [System.Runtime.Serialization.EnumMember(Value = @"UpdateConBlockForCrmObjs")] UpdateConBlockForCrmObjs = 28, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 29, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 30, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous586 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous587 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous588 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 2, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 8, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 12, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 14, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 18, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 20, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 26, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 29, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous589 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 3, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 4, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 5, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 8, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 9, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 10, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 12, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 14, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous590 { [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous591 { [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous592 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute desc")] KeyAttribute_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 6, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary desc")] CustomerPrimary_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous593 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous594 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous595 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous596 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 2, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 6, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous597 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous598 { [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease")] DoCheckWhenRelease = 4, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease desc")] DoCheckWhenRelease_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan")] DoCheckWhenPickPlan = 6, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan desc")] DoCheckWhenPickPlan_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList")] DoCheckWhenPickList = 8, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList desc")] DoCheckWhenPickList_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver")] DoCheckWhenDeliver = 10, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver desc")] DoCheckWhenDeliver_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers")] DefaultForNewCustomers = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers desc")] DefaultForNewCustomers_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk")] ExtCustCrdChk = 14, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk desc")] ExtCustCrdChk_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous599 { [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenRelease")] DoCheckWhenRelease = 2, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickPlan")] DoCheckWhenPickPlan = 3, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenPickList")] DoCheckWhenPickList = 4, [System.Runtime.Serialization.EnumMember(Value = @"DoCheckWhenDeliver")] DoCheckWhenDeliver = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultForNewCustomers")] DefaultForNewCustomers = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExtCustCrdChk")] ExtCustCrdChk = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous600 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber desc")] CurrencyNumber_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 6, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl desc")] UsedInAppl_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry desc")] DefaultCountry_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 10, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded desc")] SystemAdded_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous601 { [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyNumber")] CurrencyNumber = 2, [System.Runtime.Serialization.EnumMember(Value = @"UsedInAppl")] UsedInAppl = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCountry")] DefaultCountry = 4, [System.Runtime.Serialization.EnumMember(Value = @"SystemAdded")] SystemAdded = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous602 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId desc")] HierarchyId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous603 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous604 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId desc")] HierarchyId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel")] CustomerLevel = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel desc")] CustomerLevel_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous605 { [System.Runtime.Serialization.EnumMember(Value = @"HierarchyId")] HierarchyId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLevel")] CustomerLevel = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous606 { [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous607 { [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous608 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress desc")] DeliveryAddress_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId desc")] DistCalendarId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 10, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId desc")] ManufCalendarId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 12, [System.Runtime.Serialization.EnumMember(Value = @"Offset desc")] Offset_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 14, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId desc")] DataCaptureMenuId_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous609 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 4, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 6, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous610 { [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType")] PickInventoryType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType desc")] PickInventoryType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag")] OeAllocAssignFlag = 6, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag desc")] OeAllocAssignFlag_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 8, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing desc")] OnlineProcessing_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 10, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking desc")] AllowPartialPicking_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous611 { [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"PickInventoryType")] PickInventoryType = 2, [System.Runtime.Serialization.EnumMember(Value = @"OeAllocAssignFlag")] OeAllocAssignFlag = 3, [System.Runtime.Serialization.EnumMember(Value = @"OnlineProcessing")] OnlineProcessing = 4, [System.Runtime.Serialization.EnumMember(Value = @"AllowPartialPicking")] AllowPartialPicking = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous612 { [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous613 { [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous614 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 0, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous615 { [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous616 { [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous617 { [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous618 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous619 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous620 { [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode")] AuthorizeCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode desc")] AuthorizeCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 6, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous621 { [System.Runtime.Serialization.EnumMember(Value = @"AuthorizeCode")] AuthorizeCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 2, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous622 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 4, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress desc")] DeliveryAddress_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId desc")] DistCalendarId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 10, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId desc")] ManufCalendarId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 12, [System.Runtime.Serialization.EnumMember(Value = @"Offset desc")] Offset_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 14, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId desc")] DataCaptureMenuId_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous623 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryAddress")] DeliveryAddress = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"DistCalendarId")] DistCalendarId = 4, [System.Runtime.Serialization.EnumMember(Value = @"ManufCalendarId")] ManufCalendarId = 5, [System.Runtime.Serialization.EnumMember(Value = @"Offset")] Offset = 6, [System.Runtime.Serialization.EnumMember(Value = @"DataCaptureMenuId")] DataCaptureMenuId = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous624 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 4, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser desc")] OracleUser_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 6, [System.Runtime.Serialization.EnumMember(Value = @"WebUser desc")] WebUser_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 8, [System.Runtime.Serialization.EnumMember(Value = @"UserType desc")] UserType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 10, [System.Runtime.Serialization.EnumMember(Value = @"Active desc")] Active_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 12, [System.Runtime.Serialization.EnumMember(Value = @"Created desc")] Created_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 14, [System.Runtime.Serialization.EnumMember(Value = @"LastModified desc")] LastModified_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 16, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 18, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 20, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp desc")] DefaultIdp_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 22, [System.Runtime.Serialization.EnumMember(Value = @"FromScim desc")] FromScim_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous625 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 2, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 3, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 5, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 6, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 10, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous626 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 4, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser desc")] OracleUser_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 6, [System.Runtime.Serialization.EnumMember(Value = @"WebUser desc")] WebUser_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 8, [System.Runtime.Serialization.EnumMember(Value = @"UserType desc")] UserType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 10, [System.Runtime.Serialization.EnumMember(Value = @"Active desc")] Active_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 12, [System.Runtime.Serialization.EnumMember(Value = @"Created desc")] Created_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 14, [System.Runtime.Serialization.EnumMember(Value = @"LastModified desc")] LastModified_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 16, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 18, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 20, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp desc")] DefaultIdp_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 22, [System.Runtime.Serialization.EnumMember(Value = @"FromScim desc")] FromScim_desc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous627 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"OracleUser")] OracleUser = 2, [System.Runtime.Serialization.EnumMember(Value = @"WebUser")] WebUser = 3, [System.Runtime.Serialization.EnumMember(Value = @"UserType")] UserType = 4, [System.Runtime.Serialization.EnumMember(Value = @"Active")] Active = 5, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 6, [System.Runtime.Serialization.EnumMember(Value = @"LastModified")] LastModified = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultIdp")] DefaultIdp = 10, [System.Runtime.Serialization.EnumMember(Value = @"FromScim")] FromScim = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous628 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName desc")] CustomerName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 8, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 10, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb desc")] DefaultAssortmentDb_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 14, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb desc")] LimitSalesToAssortmentsDb_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 16, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist desc")] SalesLimitationsForOtherAssortmentsExist_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous629 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous630 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentIdRef")] AssortmentIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandardRef")] ClassificationStandardRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous631 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous632 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer14 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous633 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous634 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous635 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultAssortmentDb")] DefaultAssortmentDb = 6, [System.Runtime.Serialization.EnumMember(Value = @"LimitSalesToAssortmentsDb")] LimitSalesToAssortmentsDb = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesLimitationsForOtherAssortmentsExist")] SalesLimitationsForOtherAssortmentsExist = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous636 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustRef desc")] CustRef_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort desc")] InvoiceSort_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 6, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval desc")] EdiAutoOrderApproval_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 8, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval desc")] EdiAutoChangeApproval_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode desc")] EdiAuthorizeCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 12, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel desc")] CustPartAcqValLevel_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText desc")] ReplicateDocText_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 18, [System.Runtime.Serialization.EnumMember(Value = @"MatchType desc")] MatchType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 20, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery desc")] HandlUnitAtCoDelivery_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 26, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 28, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder desc")] ReleaseInternalOrder_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 34, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 36, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines desc")] PrintDeliveredLines_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 38, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 40, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription desc")] CustomerGroupDescription_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay desc")] CustomerNoPay_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 44, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName desc")] CustomerNoPayName_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 46, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription desc")] CustPriceGroupDescription_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 52, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc desc")] MarketCodeDesc_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 54, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 56, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription desc")] DiscountTypeDescription_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 58, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 60, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc desc")] CreditCtrlGroupDesc_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 64, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 66, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 68, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer desc")] QuickRegisteredCustomer_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 70, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 72, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 74, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 76, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 78, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 80, [System.Runtime.Serialization.EnumMember(Value = @"CrStop desc")] CrStop_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 82, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 84, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer desc")] CustPartOwnerTransfer_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 88, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod desc")] CyclePeriod_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 90, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate desc")] LastIvcDate_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 92, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 94, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 96, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 98, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 100, [System.Runtime.Serialization.EnumMember(Value = @"DateDel desc")] DateDel_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 102, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 104, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf desc")] CheckSalesGrpDelivConf_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 106, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 108, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText desc")] DocumentText_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 110, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 112, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 114, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines desc")] SummarizedSourceLines_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 116, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges desc")] SummarizedFreightCharges_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 118, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax desc")] PrintAmountsInclTax_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 120, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 122, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies desc")] NoDelnoteCopies_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 124, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 126, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf desc")] EmailOrderConf_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 128, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice desc")] EmailInvoice_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 130, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser desc")] EdiAutoApprovalUser_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 132, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage desc")] SendChangeMessage_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 134, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend desc")] AutoDespatchAdvSend_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 136, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 138, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 140, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser desc")] RecAdvAutoApprovalUser_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 142, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 144, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser desc")] SbiAutoApprovalUser_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 146, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi desc")] UpdatePriceFromSbi_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 148, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 149, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 150, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 151, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 152, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts desc")] AllowAutoSubOfParts_desc = 153, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 154, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq desc")] B2bAutoCreateCoFromSq_desc = 155, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 156, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled desc")] PayledInstaled_desc = 157, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 158, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled desc")] PayledInstalled_desc = 159, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 160, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 161, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 162, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax desc")] PrintWithholdingTax_desc = 163, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous637 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous638 { [System.Runtime.Serialization.EnumMember(Value = @"PersonInfoRef")] PersonInfoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrpRef")] CustGrpRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayRef")] CustomerNoPayRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupIdRef")] CustPriceGroupIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustRefRef")] CustRefRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeRef")] MarketCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeRef")] DiscountTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupIdRef")] CreditControlGroupIdRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyRef")] HierarchyRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelRef")] HierarchyLevelRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCodeRef")] SalesmanCodeRef = 11, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSiteRef")] AcquisitionSiteRef = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderIdRef")] OrderIdRef = 13, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentIdRef")] ForwardAgentIdRef = 14, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCodeRef")] PrintControlCodeRef = 16, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUserRef")] EdiAutoApprovalUserRef = 17, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCodeRef")] EdiAuthorizeCodeRef = 18, [System.Runtime.Serialization.EnumMember(Value = @"EdiSiteRef")] EdiSiteRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUserRef")] RecAdvAutoApprovalUserRef = 20, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUserRef")] SbiAutoApprovalUserRef = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous639 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 6, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription desc")] ClassificationDescription_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 8, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous640 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous641 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 6, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription desc")] ClassificationDescription_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 8, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous642 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous643 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 8, [System.Runtime.Serialization.EnumMember(Value = @"ListMode desc")] ListMode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 12, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey desc")] SuperParentObjkey_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous644 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous645 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentStructureRef")] AssortmentStructureRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous646 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous647 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer15 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous648 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous649 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 14, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous650 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 5, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 6, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous651 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerAssortmentStructRef")] CustomerAssortmentStructRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerInfoRef")] CustomerInfoRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous652 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous653 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer16 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous654 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objkey desc")] Objkey_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey desc")] ParentObjkey_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 4, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified desc")] Objmodified_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 6, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy desc")] ObjCreatedBy_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 8, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 10, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting")] CheckSalesGroupSetting = 12, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting desc")] CheckSalesGroupSetting_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer desc")] InternalCustomer_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 16, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer")] QuicklyRegisteredCustomer = 18, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer desc")] QuicklyRegisteredCustomer_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 20, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName desc")] CustomerName_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"Currency")] Currency = 26, [System.Runtime.Serialization.EnumMember(Value = @"Currency desc")] Currency_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer")] InvoiceCustomer = 28, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer desc")] InvoiceCustomer_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup")] CustomerStatisticGroup = 30, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup desc")] CustomerStatisticGroup_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup")] CustomerPriceGroup = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup desc")] CustomerPriceGroup_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 34, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 36, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 38, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop")] CreditStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop desc")] CreditStop_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 42, [System.Runtime.Serialization.EnumMember(Value = @"Reference desc")] Reference_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval")] CycleInterval = 44, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval desc")] CycleInterval_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated")] DateCreated = 46, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated desc")] DateCreated_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 48, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate desc")] ExpireDate_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 50, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType desc")] InvoiceType_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate")] LastInvoiceDate = 52, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate desc")] LastInvoiceDate_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation")] OrderConfirmation = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation desc")] OrderConfirmation_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes")] DeliveryNotes = 56, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes desc")] DeliveryNotes_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 58, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode desc")] LanguageCode_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 64, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 66, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder")] IncomingOrder = 68, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder desc")] IncomingOrder_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest")] IncomingChangeRequest = 70, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest desc")] IncomingChangeRequest_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser")] ApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser desc")] ApprovalUser_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator")] EdiCoordinator = 74, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator desc")] EdiCoordinator_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 76, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"OrderType")] OrderType = 78, [System.Runtime.Serialization.EnumMember(Value = @"OrderType desc")] OrderType_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite")] CustomerSite = 80, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite desc")] CustomerSite_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId")] CoTempateId = 82, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId desc")] CoTempateId_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 84, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription desc")] TemplateDescription_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 86, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription")] HierarchyDescription = 88, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription desc")] HierarchyDescription_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 90, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName")] HierarchyLevelName = 92, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName desc")] HierarchyLevelName_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 94, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 95, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous655 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 4, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 5, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGroupSetting")] CheckSalesGroupSetting = 6, [System.Runtime.Serialization.EnumMember(Value = @"InternalCustomer")] InternalCustomer = 7, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 8, [System.Runtime.Serialization.EnumMember(Value = @"QuicklyRegisteredCustomer")] QuicklyRegisteredCustomer = 9, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerName")] CustomerName = 12, [System.Runtime.Serialization.EnumMember(Value = @"Currency")] Currency = 13, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceCustomer")] InvoiceCustomer = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustomerStatisticGroup")] CustomerStatisticGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPriceGroup")] CustomerPriceGroup = 16, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 17, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 18, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"CreditStop")] CreditStop = 20, [System.Runtime.Serialization.EnumMember(Value = @"Reference")] Reference = 21, [System.Runtime.Serialization.EnumMember(Value = @"CycleInterval")] CycleInterval = 22, [System.Runtime.Serialization.EnumMember(Value = @"DateCreated")] DateCreated = 23, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 24, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceType")] InvoiceType = 25, [System.Runtime.Serialization.EnumMember(Value = @"LastInvoiceDate")] LastInvoiceDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfirmation")] OrderConfirmation = 27, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryNotes")] DeliveryNotes = 28, [System.Runtime.Serialization.EnumMember(Value = @"LanguageCode")] LanguageCode = 29, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 30, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 33, [System.Runtime.Serialization.EnumMember(Value = @"IncomingOrder")] IncomingOrder = 34, [System.Runtime.Serialization.EnumMember(Value = @"IncomingChangeRequest")] IncomingChangeRequest = 35, [System.Runtime.Serialization.EnumMember(Value = @"ApprovalUser")] ApprovalUser = 36, [System.Runtime.Serialization.EnumMember(Value = @"EdiCoordinator")] EdiCoordinator = 37, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 38, [System.Runtime.Serialization.EnumMember(Value = @"OrderType")] OrderType = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSite")] CustomerSite = 40, [System.Runtime.Serialization.EnumMember(Value = @"CoTempateId")] CoTempateId = 41, [System.Runtime.Serialization.EnumMember(Value = @"TemplateDescription")] TemplateDescription = 42, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 43, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyDescription")] HierarchyDescription = 44, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 45, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelName")] HierarchyLevelName = 46, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous656 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoRef")] CustomerNoRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous657 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous658 { [System.Runtime.Serialization.EnumMember(Value = @"Objkey")] Objkey = 0, [System.Runtime.Serialization.EnumMember(Value = @"ParentObjkey")] ParentObjkey = 1, [System.Runtime.Serialization.EnumMember(Value = @"Objmodified")] Objmodified = 2, [System.Runtime.Serialization.EnumMember(Value = @"ObjCreatedBy")] ObjCreatedBy = 3, [System.Runtime.Serialization.EnumMember(Value = @"ListMode")] ListMode = 4, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 5, [System.Runtime.Serialization.EnumMember(Value = @"SuperParentObjkey")] SuperParentObjkey = 6, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer17 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous659 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 6, [System.Runtime.Serialization.EnumMember(Value = @"Notes desc")] Notes_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 8, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 10, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous660 { [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Notes")] Notes = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous661 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 4, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer desc")] PayingCustomer_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing desc")] CustInvoicing_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 12, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId desc")] ProjectSalesPriceId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 14, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId desc")] ProjectSupplierMarginId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 16, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance desc")] PrintReferance_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 18, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId desc")] TravelExpMarginId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId desc")] MatWithMarginId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 22, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis desc")] CostPlusBasis_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer desc")] OtherPayer_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous662 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous663 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceIdRef")] ProjectSalesPriceIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginIdRef")] ProjectSupplierMarginIdRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginIdRef")] TravelExpMarginIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginIdRef")] MatWithMarginIdRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyTypeRef")] CurrencyTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomerRef")] PayingCustomerRef = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous664 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous665 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer18 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous666 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous667 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous668 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous669 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 6, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType desc")] CorrectionType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 10, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency desc")] ParallelAccCurrency_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 12, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp desc")] TimeStamp_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate desc")] RecalculationDate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod desc")] DefAmountMethod_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 18, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished desc")] CreationFinished_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 20, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod desc")] UseVouNoPeriod_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType desc")] ReverseVouCorrType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 24, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod desc")] PeriodClosingMethod_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 26, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal desc")] UserDefCal_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 28, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase desc")] ParallelBase_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 30, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType desc")] ParallelRateType_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 32, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany desc")] MasterCompany_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 34, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName desc")] MasterCompanyName_desc = 35, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous670 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorrectionType")] CorrectionType = 4, [System.Runtime.Serialization.EnumMember(Value = @"ParallelAccCurrency")] ParallelAccCurrency = 5, [System.Runtime.Serialization.EnumMember(Value = @"TimeStamp")] TimeStamp = 6, [System.Runtime.Serialization.EnumMember(Value = @"RecalculationDate")] RecalculationDate = 7, [System.Runtime.Serialization.EnumMember(Value = @"DefAmountMethod")] DefAmountMethod = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreationFinished")] CreationFinished = 9, [System.Runtime.Serialization.EnumMember(Value = @"UseVouNoPeriod")] UseVouNoPeriod = 10, [System.Runtime.Serialization.EnumMember(Value = @"ReverseVouCorrType")] ReverseVouCorrType = 11, [System.Runtime.Serialization.EnumMember(Value = @"PeriodClosingMethod")] PeriodClosingMethod = 12, [System.Runtime.Serialization.EnumMember(Value = @"UserDefCal")] UserDefCal = 13, [System.Runtime.Serialization.EnumMember(Value = @"ParallelBase")] ParallelBase = 14, [System.Runtime.Serialization.EnumMember(Value = @"ParallelRateType")] ParallelRateType = 15, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompany")] MasterCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"MasterCompanyName")] MasterCompanyName = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous671 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId desc")] ProjectSalesPriceId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName")] ProjectSalesPriceName = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName desc")] ProjectSalesPriceName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous672 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceName")] ProjectSalesPriceName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous673 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId desc")] ProjectSupplierMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName")] ProjSupplierMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName desc")] ProjSupplierMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous674 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjSupplierMarginName")] ProjSupplierMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous675 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId desc")] TravelExpMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName")] TravelExpMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName desc")] TravelExpMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous676 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginName")] TravelExpMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous677 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 2, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId desc")] MatWithMarginId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName")] MatWithMarginName = 4, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName desc")] MatWithMarginName_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous678 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 1, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginName")] MatWithMarginName = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous679 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor")] ConvFactor = 4, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor desc")] ConvFactor_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding")] CurrencyRounding = 8, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding desc")] CurrencyRounding_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate")] DecimalsInRate = 10, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate desc")] DecimalsInRate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Inverted")] Inverted = 12, [System.Runtime.Serialization.EnumMember(Value = @"Inverted desc")] Inverted_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate")] EmuCurrencyFromDate = 14, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate desc")] EmuCurrencyFromDate_desc = 15, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous680 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"ConvFactor")] ConvFactor = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyRounding")] CurrencyRounding = 4, [System.Runtime.Serialization.EnumMember(Value = @"DecimalsInRate")] DecimalsInRate = 5, [System.Runtime.Serialization.EnumMember(Value = @"Inverted")] Inverted = 6, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrencyFromDate")] EmuCurrencyFromDate = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous681 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault desc")] TypeDefault_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode desc")] RefCurrencyCode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 10, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory desc")] RateTypeCategory_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous682 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 3, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous683 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 8, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"SupParty")] SupParty = 14, [System.Runtime.Serialization.EnumMember(Value = @"SupParty desc")] SupParty_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous684 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 5, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 6, [System.Runtime.Serialization.EnumMember(Value = @"SupParty")] SupParty = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous685 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 20, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference desc")] IdentifierReference_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 22, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation desc")] IdentifierRefValidation_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 26, [System.Runtime.Serialization.EnumMember(Value = @"OneTime desc")] OneTime_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 30, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 34, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 36, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose desc")] ValidDataProcessingPurpose_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 38, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn desc")] VisibleDataSubConstColumn_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 40, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo desc")] CustomerLogo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 44, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 46, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc desc")] BusinessClassificationDesc_desc = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous686 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous687 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNoRef")] AssociationNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormRef")] CorporateFormRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageTypeRef")] CustomerTaxUsageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationRef")] BusinessClassificationRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous688 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous689 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer19 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous690 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous691 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous692 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous693 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"OurId")] OurId = 4, [System.Runtime.Serialization.EnumMember(Value = @"OurId desc")] OurId_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous694 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"OurId")] OurId = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous695 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous696 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous697 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer20 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous698 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 8, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation desc")] EanLocation_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 14, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov desc")] AddressLov_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 22, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact desc")] SecondaryContact_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact desc")] PrimaryContact_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 28, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 30, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 32, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 34, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 36, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 38, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 40, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 42, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 44, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 46, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 48, [System.Runtime.Serialization.EnumMember(Value = @"InCity desc")] InCity_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode")] JurisdictionCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode desc")] JurisdictionCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 52, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 54, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia desc")] OutputMedia_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId")] EndCustomerId = 56, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId desc")] EndCustomerId_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId")] EndCustAddrId = 58, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId desc")] EndCustAddrId_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch")] CustomerBranch = 60, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch desc")] CustomerBranch_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 62, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc desc")] CountryDesc_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory")] EndCustomerCategory = 64, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory desc")] EndCustomerCategory_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist")] DeliveryTypeExist = 66, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist desc")] DeliveryTypeExist_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb")] OneTimeDb = 68, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb desc")] OneTimeDb_desc = 69, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous699 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"EanLocation")] EanLocation = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressLov")] AddressLov = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 9, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 10, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 11, [System.Runtime.Serialization.EnumMember(Value = @"SecondaryContact")] SecondaryContact = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrimaryContact")] PrimaryContact = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 19, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 23, [System.Runtime.Serialization.EnumMember(Value = @"InCity")] InCity = 24, [System.Runtime.Serialization.EnumMember(Value = @"JurisdictionCode")] JurisdictionCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerId")] EndCustomerId = 28, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrId")] EndCustAddrId = 29, [System.Runtime.Serialization.EnumMember(Value = @"CustomerBranch")] CustomerBranch = 30, [System.Runtime.Serialization.EnumMember(Value = @"CountryDesc")] CountryDesc = 31, [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerCategory")] EndCustomerCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryTypeExist")] DeliveryTypeExist = 33, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeDb")] OneTimeDb = 34, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous700 { [System.Runtime.Serialization.EnumMember(Value = @"EndCustomerIdRef")] EndCustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"EndCustAddrIdRef")] EndCustAddrIdRef = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous701 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous702 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer21 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous703 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Guid")] Guid = 4, [System.Runtime.Serialization.EnumMember(Value = @"Guid desc")] Guid_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 6, [System.Runtime.Serialization.EnumMember(Value = @"Role desc")] Role_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 8, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary desc")] CustomerPrimary_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary")] CustomerSecondary = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary desc")] CustomerSecondary_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary")] AddressPrimary = 12, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary desc")] AddressPrimary_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary")] AddressSecondary = 14, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary desc")] AddressSecondary_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 16, [System.Runtime.Serialization.EnumMember(Value = @"Created desc")] Created_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Changed")] Changed = 18, [System.Runtime.Serialization.EnumMember(Value = @"Changed desc")] Changed_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 20, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress")] CustomerAddress = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress desc")] CustomerAddress_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr")] ConnectAllCustAddr = 24, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr desc")] ConnectAllCustAddr_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress")] ContactAddress = 26, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress desc")] ContactAddress_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy")] CreatedBy = 28, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy desc")] CreatedBy_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy")] ChangedBy = 30, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy desc")] ChangedBy_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects")] BlockedForCrmObjects = 32, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects desc")] BlockedForCrmObjects_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest")] PersonalInterest = 34, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest desc")] PersonalInterest_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest")] CampaignInterest = 36, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest desc")] CampaignInterest_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType")] DecisionPowerType = 38, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType desc")] DecisionPowerType_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Department")] Department = 40, [System.Runtime.Serialization.EnumMember(Value = @"Department desc")] Department_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 42, [System.Runtime.Serialization.EnumMember(Value = @"Manager desc")] Manager_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid")] ManagerGuid = 44, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid desc")] ManagerGuid_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress")] ManagerCustAddress = 46, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress desc")] ManagerCustAddress_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 48, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 50, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep desc")] UpdateMainRep_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 52, [System.Runtime.Serialization.EnumMember(Value = @"Phone desc")] Phone_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 54, [System.Runtime.Serialization.EnumMember(Value = @"Mobile desc")] Mobile_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 56, [System.Runtime.Serialization.EnumMember(Value = @"Email desc")] Email_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 58, [System.Runtime.Serialization.EnumMember(Value = @"Fax desc")] Fax_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 60, [System.Runtime.Serialization.EnumMember(Value = @"Pager desc")] Pager_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 62, [System.Runtime.Serialization.EnumMember(Value = @"Intercom desc")] Intercom_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 64, [System.Runtime.Serialization.EnumMember(Value = @"Www desc")] Www_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb")] ConnectAllCustAddrDb = 66, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb desc")] ConnectAllCustAddrDb_desc = 67, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous704 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 1, [System.Runtime.Serialization.EnumMember(Value = @"Guid")] Guid = 2, [System.Runtime.Serialization.EnumMember(Value = @"Role")] Role = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerSecondary")] CustomerSecondary = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressPrimary")] AddressPrimary = 6, [System.Runtime.Serialization.EnumMember(Value = @"AddressSecondary")] AddressSecondary = 7, [System.Runtime.Serialization.EnumMember(Value = @"Created")] Created = 8, [System.Runtime.Serialization.EnumMember(Value = @"Changed")] Changed = 9, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddress")] CustomerAddress = 11, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddr")] ConnectAllCustAddr = 12, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddress")] ContactAddress = 13, [System.Runtime.Serialization.EnumMember(Value = @"CreatedBy")] CreatedBy = 14, [System.Runtime.Serialization.EnumMember(Value = @"ChangedBy")] ChangedBy = 15, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForCrmObjects")] BlockedForCrmObjects = 16, [System.Runtime.Serialization.EnumMember(Value = @"PersonalInterest")] PersonalInterest = 17, [System.Runtime.Serialization.EnumMember(Value = @"CampaignInterest")] CampaignInterest = 18, [System.Runtime.Serialization.EnumMember(Value = @"DecisionPowerType")] DecisionPowerType = 19, [System.Runtime.Serialization.EnumMember(Value = @"Department")] Department = 20, [System.Runtime.Serialization.EnumMember(Value = @"Manager")] Manager = 21, [System.Runtime.Serialization.EnumMember(Value = @"ManagerGuid")] ManagerGuid = 22, [System.Runtime.Serialization.EnumMember(Value = @"ManagerCustAddress")] ManagerCustAddress = 23, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"UpdateMainRep")] UpdateMainRep = 25, [System.Runtime.Serialization.EnumMember(Value = @"Phone")] Phone = 26, [System.Runtime.Serialization.EnumMember(Value = @"Mobile")] Mobile = 27, [System.Runtime.Serialization.EnumMember(Value = @"Email")] Email = 28, [System.Runtime.Serialization.EnumMember(Value = @"Fax")] Fax = 29, [System.Runtime.Serialization.EnumMember(Value = @"Pager")] Pager = 30, [System.Runtime.Serialization.EnumMember(Value = @"Intercom")] Intercom = 31, [System.Runtime.Serialization.EnumMember(Value = @"Www")] Www = 32, [System.Runtime.Serialization.EnumMember(Value = @"ConnectAllCustAddrDb")] ConnectAllCustAddrDb = 33, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous705 { [System.Runtime.Serialization.EnumMember(Value = @"PersonIdRef")] PersonIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerAddressRef")] CustomerAddressRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ContactAddressRef")] ContactAddressRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous706 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous707 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer22 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous708 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 6, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 8, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 14, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 18, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MethodId desc")] MethodId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 22, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 28, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId desc")] CompanyId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId desc")] CustomsId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 34, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 36, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId desc")] ManufacturerId_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 38, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId desc")] OwnerId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId desc")] TaxOfficeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 42, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal desc")] PartyTypeDbVal_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous709 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 9, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 16, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 17, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 18, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous710 { [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous711 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous712 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer23 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous713 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode desc")] MediaCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 4, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass desc")] MessageClass_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address desc")] Address_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 10, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo desc")] SequenceNo_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 12, [System.Runtime.Serialization.EnumMember(Value = @"Locale desc")] Locale_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous714 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCode")] MediaCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageClass")] MessageClass = 2, [System.Runtime.Serialization.EnumMember(Value = @"Address")] Address = 3, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 4, [System.Runtime.Serialization.EnumMember(Value = @"SequenceNo")] SequenceNo = 5, [System.Runtime.Serialization.EnumMember(Value = @"Locale")] Locale = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous715 { [System.Runtime.Serialization.EnumMember(Value = @"MessageClassRef")] MessageClassRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"MediaCodeRef")] MediaCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressRef")] AddressRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"LocaleRef")] LocaleRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous716 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous717 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer24 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous718 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee")] InvoiceFee = 6, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee desc")] InvoiceFee_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 8, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate desc")] ExpireDate_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode")] NationalBankCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode desc")] NationalBankCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 12, [System.Runtime.Serialization.EnumMember(Value = @"GroupId desc")] GroupId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer")] DefAuthorizer = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer desc")] DefAuthorizer_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 16, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId desc")] PayTermId_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode")] DefVatCode = 18, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode desc")] DefVatCode_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode")] RoundingTaxCode = 20, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode desc")] RoundingTaxCode_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency")] DefCurrency = 22, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency desc")] DefCurrency_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays")] PaymDevDays = 24, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays desc")] PaymDevDays_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType")] IdentityType = 26, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType desc")] IdentityType_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode")] DefPreliminaryCode = 28, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode desc")] DefPreliminaryCode_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice")] AutomaticInvoice = 30, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice desc")] AutomaticInvoice_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 32, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 34, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck")] NcfReferenceCheck = 36, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck desc")] NcfReferenceCheck_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 38, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt desc")] TaxExempt_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom desc")] TaxExemptValidFrom_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 42, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo desc")] TaxExemptValidTo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin")] SecondTin = 44, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin desc")] SecondTin_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold")] ReportAndWithhold = 46, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold desc")] ReportAndWithhold_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId")] SupplierTaxOfficeId = 48, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId desc")] SupplierTaxOfficeId_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 50, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup desc")] NumerationGroup_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 52, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId desc")] TaxBookId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 54, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType desc")] TaxBookType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 56, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId desc")] TaxStructureId_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText")] PrintTaxCodeText = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText desc")] PrintTaxCodeText_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies desc")] NoInvoiceCopies_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType")] DefManSuppInvType = 62, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType desc")] DefManSuppInvType_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType")] DefAutoInvoiceType = 64, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType desc")] DefAutoInvoiceType_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType")] DefRecManSuppInvType = 66, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType desc")] DefRecManSuppInvType_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 68, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 70, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 72, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 74, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount desc")] WithholdingBaseAmount_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient")] InvoiceRecipient = 76, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient desc")] InvoiceRecipient_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier")] InvoicingSupplier = 78, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier desc")] InvoicingSupplier_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel")] MatchingLevel = 80, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel desc")] MatchingLevel_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance")] AllowTolerance = 82, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance desc")] AllowTolerance_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting")] CreateTolerancePosting = 84, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting desc")] CreateTolerancePosting_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff")] AllowQuantityDiff = 86, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff desc")] AllowQuantityDiff_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType")] DefaultCurrencyRateType = 88, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType desc")] DefaultCurrencyRateType_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm")] TaxCertificateForm = 90, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm desc")] TaxCertificateForm_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"IsNote")] IsNote = 92, [System.Runtime.Serialization.EnumMember(Value = @"IsNote desc")] IsNote_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 94, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId desc")] DelivTypeId_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode")] SupVatFreeVatCode = 96, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode desc")] SupVatFreeVatCode_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode")] SupCountryCode = 98, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode desc")] SupCountryCode_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag")] AutomaticPayAuthFlag = 100, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag desc")] AutomaticPayAuthFlag_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 102, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 104, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 106, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc desc")] InactiveReasonDesc_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity")] LegalIdentity = 108, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity desc")] LegalIdentity_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod")] PoRefRecRefValMethod = 110, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod desc")] PoRefRecRefValMethod_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId")] PostingTemplateId = 112, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId desc")] PostingTemplateId_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName")] LegalIdName = 114, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName desc")] LegalIdName_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId")] LegalIdAddrId = 116, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId desc")] LegalIdAddrId_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp")] BiTimestamp = 118, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp desc")] BiTimestamp_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 120, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId desc")] InvoiceReasonId_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 122, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo desc")] FiscalNo_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom")] InvoiceRecipientFrom = 124, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom desc")] InvoiceRecipientFrom_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 126, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec desc")] ExcFromSpesometroDec_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired")] ServiceCodeRequired = 128, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired desc")] ServiceCodeRequired_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode")] EinvoiceReceiverCode = 130, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode desc")] EinvoiceReceiverCode_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 132, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail")] CertifiedEmail = 134, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail desc")] CertifiedEmail_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative")] TaxRepresentative = 136, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative desc")] TaxRepresentative_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 138, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate desc")] ValidationDate_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 140, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency desc")] AccCurrency_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency")] EmuCurrency = 142, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency desc")] EmuCurrency_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur")] RefCurrCodeEur = 144, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur desc")] RefCurrCodeEur_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 146, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 148, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams desc")] EnabledLccParams_desc = 149, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous719 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceFee")] InvoiceFee = 3, [System.Runtime.Serialization.EnumMember(Value = @"ExpireDate")] ExpireDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"NationalBankCode")] NationalBankCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"GroupId")] GroupId = 6, [System.Runtime.Serialization.EnumMember(Value = @"DefAuthorizer")] DefAuthorizer = 7, [System.Runtime.Serialization.EnumMember(Value = @"PayTermId")] PayTermId = 8, [System.Runtime.Serialization.EnumMember(Value = @"DefVatCode")] DefVatCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"RoundingTaxCode")] RoundingTaxCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrency")] DefCurrency = 11, [System.Runtime.Serialization.EnumMember(Value = @"PaymDevDays")] PaymDevDays = 12, [System.Runtime.Serialization.EnumMember(Value = @"IdentityType")] IdentityType = 13, [System.Runtime.Serialization.EnumMember(Value = @"DefPreliminaryCode")] DefPreliminaryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticInvoice")] AutomaticInvoice = 15, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 16, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 17, [System.Runtime.Serialization.EnumMember(Value = @"NcfReferenceCheck")] NcfReferenceCheck = 18, [System.Runtime.Serialization.EnumMember(Value = @"TaxExempt")] TaxExempt = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidFrom")] TaxExemptValidFrom = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxExemptValidTo")] TaxExemptValidTo = 21, [System.Runtime.Serialization.EnumMember(Value = @"SecondTin")] SecondTin = 22, [System.Runtime.Serialization.EnumMember(Value = @"ReportAndWithhold")] ReportAndWithhold = 23, [System.Runtime.Serialization.EnumMember(Value = @"SupplierTaxOfficeId")] SupplierTaxOfficeId = 24, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroup")] NumerationGroup = 25, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 26, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookType")] TaxBookType = 27, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructureId")] TaxStructureId = 28, [System.Runtime.Serialization.EnumMember(Value = @"PrintTaxCodeText")] PrintTaxCodeText = 29, [System.Runtime.Serialization.EnumMember(Value = @"NoInvoiceCopies")] NoInvoiceCopies = 30, [System.Runtime.Serialization.EnumMember(Value = @"DefManSuppInvType")] DefManSuppInvType = 31, [System.Runtime.Serialization.EnumMember(Value = @"DefAutoInvoiceType")] DefAutoInvoiceType = 32, [System.Runtime.Serialization.EnumMember(Value = @"DefRecManSuppInvType")] DefRecManSuppInvType = 33, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 34, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 35, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 36, [System.Runtime.Serialization.EnumMember(Value = @"WithholdingBaseAmount")] WithholdingBaseAmount = 37, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipient")] InvoiceRecipient = 38, [System.Runtime.Serialization.EnumMember(Value = @"InvoicingSupplier")] InvoicingSupplier = 39, [System.Runtime.Serialization.EnumMember(Value = @"MatchingLevel")] MatchingLevel = 40, [System.Runtime.Serialization.EnumMember(Value = @"AllowTolerance")] AllowTolerance = 41, [System.Runtime.Serialization.EnumMember(Value = @"CreateTolerancePosting")] CreateTolerancePosting = 42, [System.Runtime.Serialization.EnumMember(Value = @"AllowQuantityDiff")] AllowQuantityDiff = 43, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateType")] DefaultCurrencyRateType = 44, [System.Runtime.Serialization.EnumMember(Value = @"TaxCertificateForm")] TaxCertificateForm = 45, [System.Runtime.Serialization.EnumMember(Value = @"IsNote")] IsNote = 46, [System.Runtime.Serialization.EnumMember(Value = @"DelivTypeId")] DelivTypeId = 47, [System.Runtime.Serialization.EnumMember(Value = @"SupVatFreeVatCode")] SupVatFreeVatCode = 48, [System.Runtime.Serialization.EnumMember(Value = @"SupCountryCode")] SupCountryCode = 49, [System.Runtime.Serialization.EnumMember(Value = @"AutomaticPayAuthFlag")] AutomaticPayAuthFlag = 50, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 51, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 52, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonDesc")] InactiveReasonDesc = 53, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdentity")] LegalIdentity = 54, [System.Runtime.Serialization.EnumMember(Value = @"PoRefRecRefValMethod")] PoRefRecRefValMethod = 55, [System.Runtime.Serialization.EnumMember(Value = @"PostingTemplateId")] PostingTemplateId = 56, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdName")] LegalIdName = 57, [System.Runtime.Serialization.EnumMember(Value = @"LegalIdAddrId")] LegalIdAddrId = 58, [System.Runtime.Serialization.EnumMember(Value = @"BiTimestamp")] BiTimestamp = 59, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonId")] InvoiceReasonId = 60, [System.Runtime.Serialization.EnumMember(Value = @"FiscalNo")] FiscalNo = 61, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceRecipientFrom")] InvoiceRecipientFrom = 62, [System.Runtime.Serialization.EnumMember(Value = @"ExcFromSpesometroDec")] ExcFromSpesometroDec = 63, [System.Runtime.Serialization.EnumMember(Value = @"ServiceCodeRequired")] ServiceCodeRequired = 64, [System.Runtime.Serialization.EnumMember(Value = @"EinvoiceReceiverCode")] EinvoiceReceiverCode = 65, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 66, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmail")] CertifiedEmail = 67, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentative")] TaxRepresentative = 68, [System.Runtime.Serialization.EnumMember(Value = @"ValidationDate")] ValidationDate = 69, [System.Runtime.Serialization.EnumMember(Value = @"AccCurrency")] AccCurrency = 70, [System.Runtime.Serialization.EnumMember(Value = @"EmuCurrency")] EmuCurrency = 71, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrCodeEur")] RefCurrCodeEur = 72, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 73, [System.Runtime.Serialization.EnumMember(Value = @"EnabledLccParams")] EnabledLccParams = 74, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous720 { [System.Runtime.Serialization.EnumMember(Value = @"InvoiceReasonIdRef")] InvoiceReasonIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"InvoicePartyTypeGroupRef")] InvoicePartyTypeGroupRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"PaymentTermRef")] PaymentTermRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"DefaultCurrencyRateTypeRef")] DefaultCurrencyRateTypeRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefCurrencyRef")] DefCurrencyRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"NumerationGroupRef")] NumerationGroupRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxCodeRef")] TaxCodeRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"InactiveReasonRef")] InactiveReasonRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"CertifiedEmailRef")] CertifiedEmailRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxRepresentativeRef")] TaxRepresentativeRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"PersonIdRef")] PersonIdRef = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous721 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous722 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer25 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous723 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 6, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment")] BlockedForPayment = 8, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment desc")] BlockedForPayment_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity")] OtherPayeeIdentity = 10, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity desc")] OtherPayeeIdentity_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 12, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate desc")] InterestTemplate_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 14, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate desc")] ReminderTemplate_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay")] PaymentDelay = 16, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay desc")] PaymentDelay_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 18, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance desc")] AmountTolerance_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 20, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance desc")] PercentTolerance_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 22, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance desc")] DiscDaysTolerance_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed")] NettingAllowed = 24, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed desc")] NettingAllowed_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo")] FormatNo = 26, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo desc")] FormatNo_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 28, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice desc")] PaymentAdvice_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 30, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup desc")] DeductionGroup_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId")] CorporationId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId desc")] CorporationId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"MemberId")] MemberId = 34, [System.Runtime.Serialization.EnumMember(Value = @"MemberId desc")] MemberId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer")] SendReminderToPayer = 36, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer desc")] SendReminderToPayer_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer")] SendInterestInvToPayer = 38, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer desc")] SendInterestInvToPayer_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"RuleId")] RuleId = 40, [System.Runtime.Serialization.EnumMember(Value = @"RuleId desc")] RuleId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType")] PaymentReceiptType = 42, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType desc")] PaymentReceiptType_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 44, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient")] CheckRecipient = 46, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient desc")] CheckRecipient_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer")] SendStmtOfAccToPayer = 48, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer desc")] SendStmtOfAccToPayer_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 50, [System.Runtime.Serialization.EnumMember(Value = @"ArContact desc")] ArContact_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 52, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 54, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia desc")] OutputMedia_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod")] DefaultPaymentMethod = 56, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod desc")] DefaultPaymentMethod_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 58, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 60, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId")] NextPaymentMatchingId = 62, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId desc")] NextPaymentMatchingId_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay")] IsOneInvPerPay = 64, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay desc")] IsOneInvPerPay_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 66, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb")] IsOneInvPerPayDb = 68, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb desc")] IsOneInvPerPayDb_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup")] OtherPayerDeductionGroup = 70, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup desc")] OtherPayerDeductionGroup_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc")] OtherPayerDeductionGroupDesc = 72, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc desc")] OtherPayerDeductionGroupDesc_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId")] OtherPayerCorporationId = 74, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId desc")] OtherPayerCorporationId_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 76, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 78, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer desc")] OneTimeCustomer_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency")] ToleranceCurrency = 80, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency desc")] ToleranceCurrency_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate")] OldReminderTemplate = 82, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate desc")] OldReminderTemplate_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate")] ChangedReminderTemplate = 84, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate desc")] ChangedReminderTemplate_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 87, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous724 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 3, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForPayment")] BlockedForPayment = 4, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentity")] OtherPayeeIdentity = 5, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplate")] InterestTemplate = 6, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplate")] ReminderTemplate = 7, [System.Runtime.Serialization.EnumMember(Value = @"PaymentDelay")] PaymentDelay = 8, [System.Runtime.Serialization.EnumMember(Value = @"AmountTolerance")] AmountTolerance = 9, [System.Runtime.Serialization.EnumMember(Value = @"PercentTolerance")] PercentTolerance = 10, [System.Runtime.Serialization.EnumMember(Value = @"DiscDaysTolerance")] DiscDaysTolerance = 11, [System.Runtime.Serialization.EnumMember(Value = @"NettingAllowed")] NettingAllowed = 12, [System.Runtime.Serialization.EnumMember(Value = @"FormatNo")] FormatNo = 13, [System.Runtime.Serialization.EnumMember(Value = @"PaymentAdvice")] PaymentAdvice = 14, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroup")] DeductionGroup = 15, [System.Runtime.Serialization.EnumMember(Value = @"CorporationId")] CorporationId = 16, [System.Runtime.Serialization.EnumMember(Value = @"MemberId")] MemberId = 17, [System.Runtime.Serialization.EnumMember(Value = @"SendReminderToPayer")] SendReminderToPayer = 18, [System.Runtime.Serialization.EnumMember(Value = @"SendInterestInvToPayer")] SendInterestInvToPayer = 19, [System.Runtime.Serialization.EnumMember(Value = @"RuleId")] RuleId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PaymentReceiptType")] PaymentReceiptType = 21, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 22, [System.Runtime.Serialization.EnumMember(Value = @"CheckRecipient")] CheckRecipient = 23, [System.Runtime.Serialization.EnumMember(Value = @"SendStmtOfAccToPayer")] SendStmtOfAccToPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"ArContact")] ArContact = 25, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 26, [System.Runtime.Serialization.EnumMember(Value = @"OutputMedia")] OutputMedia = 27, [System.Runtime.Serialization.EnumMember(Value = @"DefaultPaymentMethod")] DefaultPaymentMethod = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 29, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 30, [System.Runtime.Serialization.EnumMember(Value = @"NextPaymentMatchingId")] NextPaymentMatchingId = 31, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPay")] IsOneInvPerPay = 32, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 33, [System.Runtime.Serialization.EnumMember(Value = @"IsOneInvPerPayDb")] IsOneInvPerPayDb = 34, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroup")] OtherPayerDeductionGroup = 35, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupDesc")] OtherPayerDeductionGroupDesc = 36, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerCorporationId")] OtherPayerCorporationId = 37, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 38, [System.Runtime.Serialization.EnumMember(Value = @"OneTimeCustomer")] OneTimeCustomer = 39, [System.Runtime.Serialization.EnumMember(Value = @"ToleranceCurrency")] ToleranceCurrency = 40, [System.Runtime.Serialization.EnumMember(Value = @"OldReminderTemplate")] OldReminderTemplate = 41, [System.Runtime.Serialization.EnumMember(Value = @"ChangedReminderTemplate")] ChangedReminderTemplate = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous725 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReminderTemplateRef")] ReminderTemplateRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayeeIdentityRef")] OtherPayeeIdentityRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"InterestTemplateRef")] InterestTemplateRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"ArContactRef")] ArContactRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"DeductionGroupRef")] DeductionGroupRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayerDeductionGroupRef")] OtherPayerDeductionGroupRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"CommMethodRef")] CommMethodRef = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous726 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous727 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer26 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous728 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 4, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer desc")] PayingCustomer_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing desc")] CustInvoicing_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 12, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId desc")] ProjectSalesPriceId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 14, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId desc")] ProjectSupplierMarginId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 16, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance desc")] PrintReferance_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 18, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId desc")] TravelExpMarginId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId desc")] MatWithMarginId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 22, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis desc")] CostPlusBasis_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 24, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer desc")] OtherPayer_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous729 { [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomer")] PayingCustomer = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustInvoicing")] CustInvoicing = 5, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceId")] ProjectSalesPriceId = 6, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginId")] ProjectSupplierMarginId = 7, [System.Runtime.Serialization.EnumMember(Value = @"PrintReferance")] PrintReferance = 8, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginId")] TravelExpMarginId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginId")] MatWithMarginId = 10, [System.Runtime.Serialization.EnumMember(Value = @"CostPlusBasis")] CostPlusBasis = 11, [System.Runtime.Serialization.EnumMember(Value = @"OtherPayer")] OtherPayer = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous730 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSalesPriceIdRef")] ProjectSalesPriceIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"ProjectSupplierMarginIdRef")] ProjectSupplierMarginIdRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"TravelExpMarginIdRef")] TravelExpMarginIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"MatWithMarginIdRef")] MatWithMarginIdRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyTypeRef")] CurrencyTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"PayingCustomerRef")] PayingCustomerRef = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous731 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous732 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer27 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous733 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustRef desc")] CustRef_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort desc")] InvoiceSort_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 6, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval desc")] EdiAutoOrderApproval_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 8, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval desc")] EdiAutoChangeApproval_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode desc")] EdiAuthorizeCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 12, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel desc")] CustPartAcqValLevel_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText desc")] ReplicateDocText_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 18, [System.Runtime.Serialization.EnumMember(Value = @"MatchType desc")] MatchType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 20, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery desc")] HandlUnitAtCoDelivery_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 26, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 28, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder desc")] ReleaseInternalOrder_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 34, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 36, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines desc")] PrintDeliveredLines_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 38, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 40, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription desc")] CustomerGroupDescription_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay desc")] CustomerNoPay_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 44, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName desc")] CustomerNoPayName_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 46, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription desc")] CustPriceGroupDescription_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 52, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc desc")] MarketCodeDesc_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 54, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 56, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription desc")] DiscountTypeDescription_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 58, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 60, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc desc")] CreditCtrlGroupDesc_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 64, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 66, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 68, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer desc")] QuickRegisteredCustomer_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 70, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 72, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 74, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 76, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 78, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 80, [System.Runtime.Serialization.EnumMember(Value = @"CrStop desc")] CrStop_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 82, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 84, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer desc")] CustPartOwnerTransfer_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 88, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod desc")] CyclePeriod_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 90, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate desc")] LastIvcDate_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 92, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 94, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 96, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 98, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 100, [System.Runtime.Serialization.EnumMember(Value = @"DateDel desc")] DateDel_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 102, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 104, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf desc")] CheckSalesGrpDelivConf_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 106, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 108, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText desc")] DocumentText_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 110, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 112, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 114, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines desc")] SummarizedSourceLines_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 116, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges desc")] SummarizedFreightCharges_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 118, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax desc")] PrintAmountsInclTax_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 120, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 122, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies desc")] NoDelnoteCopies_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 124, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 126, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf desc")] EmailOrderConf_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 128, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice desc")] EmailInvoice_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 130, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser desc")] EdiAutoApprovalUser_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 132, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage desc")] SendChangeMessage_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 134, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend desc")] AutoDespatchAdvSend_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 136, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 138, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 140, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser desc")] RecAdvAutoApprovalUser_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 142, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 144, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser desc")] SbiAutoApprovalUser_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 146, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi desc")] UpdatePriceFromSbi_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 148, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 149, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 150, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 151, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 152, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts desc")] AllowAutoSubOfParts_desc = 153, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 154, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq desc")] B2bAutoCreateCoFromSq_desc = 155, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 156, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled desc")] PayledInstaled_desc = 157, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 158, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled desc")] PayledInstalled_desc = 159, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 160, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 161, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 162, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax desc")] PrintWithholdingTax_desc = 163, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous734 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous735 { [System.Runtime.Serialization.EnumMember(Value = @"PersonInfoRef")] PersonInfoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrpRef")] CustGrpRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayRef")] CustomerNoPayRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupIdRef")] CustPriceGroupIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustRefRef")] CustRefRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeRef")] MarketCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeRef")] DiscountTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupIdRef")] CreditControlGroupIdRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyRef")] HierarchyRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelRef")] HierarchyLevelRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCodeRef")] SalesmanCodeRef = 11, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSiteRef")] AcquisitionSiteRef = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderIdRef")] OrderIdRef = 13, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentIdRef")] ForwardAgentIdRef = 14, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCodeRef")] PrintControlCodeRef = 16, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUserRef")] EdiAutoApprovalUserRef = 17, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCodeRef")] EdiAuthorizeCodeRef = 18, [System.Runtime.Serialization.EnumMember(Value = @"EdiSiteRef")] EdiSiteRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUserRef")] RecAdvAutoApprovalUserRef = 20, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUserRef")] SbiAutoApprovalUserRef = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous736 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous737 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer28 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous738 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 4, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 6, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 8, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber")] CreditNumber = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber desc")] CreditNumber_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating")] CreditRating = 12, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating desc")] CreditRating_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment")] AvgDaysForPayment = 14, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment desc")] AvgDaysForPayment_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments")] CreditComments = 16, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments desc")] CreditComments_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 18, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode desc")] CreditAnalystCode_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 20, [System.Runtime.Serialization.EnumMember(Value = @"MessageType desc")] MessageType_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 24, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock desc")] CreditBlock_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 26, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate desc")] NextReviewDate_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 28, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist desc")] CorpCreditRelationExist_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType")] CreditRelationshipType = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType desc")] CreditRelationshipType_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 32, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity")] ParentIdentity = 34, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity desc")] ParentIdentity_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays")] AllowedDueDays = 36, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays desc")] AllowedDueDays_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount")] AllowedDueAmount = 38, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount desc")] AllowedDueAmount_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType")] OldCreditRelationshipType = 40, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType desc")] OldCreditRelationshipType_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous739 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreditNumber")] CreditNumber = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditRating")] CreditRating = 6, [System.Runtime.Serialization.EnumMember(Value = @"AvgDaysForPayment")] AvgDaysForPayment = 7, [System.Runtime.Serialization.EnumMember(Value = @"CreditComments")] CreditComments = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCode")] CreditAnalystCode = 9, [System.Runtime.Serialization.EnumMember(Value = @"MessageType")] MessageType = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 12, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 13, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditRelationshipType")] CreditRelationshipType = 15, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 16, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentity")] ParentIdentity = 17, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueDays")] AllowedDueDays = 18, [System.Runtime.Serialization.EnumMember(Value = @"AllowedDueAmount")] AllowedDueAmount = 19, [System.Runtime.Serialization.EnumMember(Value = @"OldCreditRelationshipType")] OldCreditRelationshipType = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous740 { [System.Runtime.Serialization.EnumMember(Value = @"CompanyRef")] CompanyRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CreditAnalystCodeRef")] CreditAnalystCodeRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"MessageTypeRef")] MessageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompanyRef")] ParentCompanyRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"ParentIdentityRef")] ParentIdentityRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"CompanyFinanceRef")] CompanyFinanceRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"CompanyInvoiceInfoRef")] CompanyInvoiceInfoRef = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous741 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous742 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer29 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous743 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 2, [System.Runtime.Serialization.EnumMember(Value = @"Turnover desc")] Turnover_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 6, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod desc")] YearEndPeriod_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 8, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount desc")] KeyAccount_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 10, [System.Runtime.Serialization.EnumMember(Value = @"SourceId desc")] SourceId_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 12, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId desc")] PotentialId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId desc")] LoyaltyId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 16, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId desc")] EmployeeCountId_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 18, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId desc")] CompetitorId_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId desc")] MainRepresentativeId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 22, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 24, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany desc")] ParentCompany_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 26, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory desc")] ParentCategory_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 28, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId desc")] BusinessLeadId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 30, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 32, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb desc")] KeyAccountDb_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 34, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType desc")] ReferenceType_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 36, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName desc")] BusinessLeadName_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 38, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 40, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName desc")] MainRepresentativeName_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous744 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Turnover")] Turnover = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"YearEndPeriod")] YearEndPeriod = 3, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccount")] KeyAccount = 4, [System.Runtime.Serialization.EnumMember(Value = @"SourceId")] SourceId = 5, [System.Runtime.Serialization.EnumMember(Value = @"PotentialId")] PotentialId = 6, [System.Runtime.Serialization.EnumMember(Value = @"LoyaltyId")] LoyaltyId = 7, [System.Runtime.Serialization.EnumMember(Value = @"EmployeeCountId")] EmployeeCountId = 8, [System.Runtime.Serialization.EnumMember(Value = @"CompetitorId")] CompetitorId = 9, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeId")] MainRepresentativeId = 10, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 11, [System.Runtime.Serialization.EnumMember(Value = @"ParentCompany")] ParentCompany = 12, [System.Runtime.Serialization.EnumMember(Value = @"ParentCategory")] ParentCategory = 13, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadId")] BusinessLeadId = 14, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 15, [System.Runtime.Serialization.EnumMember(Value = @"KeyAccountDb")] KeyAccountDb = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReferenceType")] ReferenceType = 17, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadName")] BusinessLeadName = 18, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 19, [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeName")] MainRepresentativeName = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous745 { [System.Runtime.Serialization.EnumMember(Value = @"MainRepresentativeRef")] MainRepresentativeRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"TurnoverCurrencyRef")] TurnoverCurrencyRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessLeadRef")] BusinessLeadRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"ParentAccountRef")] ParentAccountRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous746 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous747 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer30 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous748 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId")] CarrierAccountId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId desc")] CarrierAccountId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 6, [System.Runtime.Serialization.EnumMember(Value = @"Account desc")] Account_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 8, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault desc")] CustomerDefault_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 12, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous749 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierAccountId")] CarrierAccountId = 1, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 5, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous750 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CarrierIdRef")] CarrierIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous751 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous752 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer31 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous753 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId")] ThirdPartyId = 2, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId desc")] ThirdPartyId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 6, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address1 desc")] Address1_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 10, [System.Runtime.Serialization.EnumMember(Value = @"Address2 desc")] Address2_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 12, [System.Runtime.Serialization.EnumMember(Value = @"Address3 desc")] Address3_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 14, [System.Runtime.Serialization.EnumMember(Value = @"Address4 desc")] Address4_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 16, [System.Runtime.Serialization.EnumMember(Value = @"Address5 desc")] Address5_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 18, [System.Runtime.Serialization.EnumMember(Value = @"Address6 desc")] Address6_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 20, [System.Runtime.Serialization.EnumMember(Value = @"City desc")] City_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 22, [System.Runtime.Serialization.EnumMember(Value = @"County desc")] County_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 24, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 26, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode desc")] ZipCode_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 28, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId desc")] CarrierId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 32, [System.Runtime.Serialization.EnumMember(Value = @"Account desc")] Account_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 34, [System.Runtime.Serialization.EnumMember(Value = @"Note desc")] Note_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 36, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault desc")] CustomerDefault_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 38, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 40, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 41, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous754 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"ThirdPartyId")] ThirdPartyId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 3, [System.Runtime.Serialization.EnumMember(Value = @"Address1")] Address1 = 4, [System.Runtime.Serialization.EnumMember(Value = @"Address2")] Address2 = 5, [System.Runtime.Serialization.EnumMember(Value = @"Address3")] Address3 = 6, [System.Runtime.Serialization.EnumMember(Value = @"Address4")] Address4 = 7, [System.Runtime.Serialization.EnumMember(Value = @"Address5")] Address5 = 8, [System.Runtime.Serialization.EnumMember(Value = @"Address6")] Address6 = 9, [System.Runtime.Serialization.EnumMember(Value = @"City")] City = 10, [System.Runtime.Serialization.EnumMember(Value = @"County")] County = 11, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 12, [System.Runtime.Serialization.EnumMember(Value = @"ZipCode")] ZipCode = 13, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 14, [System.Runtime.Serialization.EnumMember(Value = @"CarrierId")] CarrierId = 15, [System.Runtime.Serialization.EnumMember(Value = @"Account")] Account = 16, [System.Runtime.Serialization.EnumMember(Value = @"Note")] Note = 17, [System.Runtime.Serialization.EnumMember(Value = @"CustomerDefault")] CustomerDefault = 18, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 19, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 20, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous755 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerIdRef")] CustomerIdRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"IsoCountryRef")] IsoCountryRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CarrierIdRef")] CarrierIdRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous756 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous757 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } /// /// Prefer: return=minimal /// [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Prefer32 { [System.Runtime.Serialization.EnumMember(Value = @"return=minimal")] Return_minimal = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous758 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 4, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous759 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous760 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 2, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous761 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous762 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous763 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous764 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef desc")] ExternalTaxSystemRef_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous765 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous766 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 4, [System.Runtime.Serialization.EnumMember(Value = @"FirstName desc")] FirstName_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 6, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName desc")] MiddleName_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 8, [System.Runtime.Serialization.EnumMember(Value = @"LastName desc")] LastName_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 10, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName desc")] AlternativeName_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 12, [System.Runtime.Serialization.EnumMember(Value = @"Prefix desc")] Prefix_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 14, [System.Runtime.Serialization.EnumMember(Value = @"BirthName desc")] BirthName_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 16, [System.Runtime.Serialization.EnumMember(Value = @"Alias desc")] Alias_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 18, [System.Runtime.Serialization.EnumMember(Value = @"Initials desc")] Initials_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 20, [System.Runtime.Serialization.EnumMember(Value = @"Title desc")] Title_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 22, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 24, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 26, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 28, [System.Runtime.Serialization.EnumMember(Value = @"Protected desc")] Protected_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 30, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 32, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 34, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 36, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 38, [System.Runtime.Serialization.EnumMember(Value = @"UserId desc")] UserId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 40, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId desc")] PictureThumbnailId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 42, [System.Runtime.Serialization.EnumMember(Value = @"Inactive desc")] Inactive_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 44, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers desc")] ContactCustomers_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 46, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers desc")] ContactSuppliers_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact desc")] CustomerContact_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 50, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse desc")] BlockedForUse_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 52, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact desc")] SupplierContact_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 54, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier desc")] BlockedForUseSupplier_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 56, [System.Runtime.Serialization.EnumMember(Value = @"Objstate desc")] Objstate_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 58, [System.Runtime.Serialization.EnumMember(Value = @"State desc")] State_desc = 59, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous767 { [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"FirstName")] FirstName = 2, [System.Runtime.Serialization.EnumMember(Value = @"MiddleName")] MiddleName = 3, [System.Runtime.Serialization.EnumMember(Value = @"LastName")] LastName = 4, [System.Runtime.Serialization.EnumMember(Value = @"AlternativeName")] AlternativeName = 5, [System.Runtime.Serialization.EnumMember(Value = @"Prefix")] Prefix = 6, [System.Runtime.Serialization.EnumMember(Value = @"BirthName")] BirthName = 7, [System.Runtime.Serialization.EnumMember(Value = @"Alias")] Alias = 8, [System.Runtime.Serialization.EnumMember(Value = @"Initials")] Initials = 9, [System.Runtime.Serialization.EnumMember(Value = @"Title")] Title = 10, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 11, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 12, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 13, [System.Runtime.Serialization.EnumMember(Value = @"Protected")] Protected = 14, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 15, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 16, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 17, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 18, [System.Runtime.Serialization.EnumMember(Value = @"UserId")] UserId = 19, [System.Runtime.Serialization.EnumMember(Value = @"PictureThumbnailId")] PictureThumbnailId = 20, [System.Runtime.Serialization.EnumMember(Value = @"Inactive")] Inactive = 21, [System.Runtime.Serialization.EnumMember(Value = @"ContactCustomers")] ContactCustomers = 22, [System.Runtime.Serialization.EnumMember(Value = @"ContactSuppliers")] ContactSuppliers = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerContact")] CustomerContact = 24, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUse")] BlockedForUse = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierContact")] SupplierContact = 26, [System.Runtime.Serialization.EnumMember(Value = @"BlockedForUseSupplier")] BlockedForUseSupplier = 27, [System.Runtime.Serialization.EnumMember(Value = @"Objstate")] Objstate = 28, [System.Runtime.Serialization.EnumMember(Value = @"State")] State = 29, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous768 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType desc")] TaxLiabilityType_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous769 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous770 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability desc")] TaxLiability_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 8, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType desc")] TaxLiabilityType_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous771 { [System.Runtime.Serialization.EnumMember(Value = @"TaxLiability")] TaxLiability = 0, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 1, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxLiabilityType")] TaxLiabilityType = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CountryCode { [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 0, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 1, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 2, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 3, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous772 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous773 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous774 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous775 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum TaxTypeCategory { [System.Runtime.Serialization.EnumMember(Value = @"Icms")] Icms = 0, [System.Runtime.Serialization.EnumMember(Value = @"Iss")] Iss = 1, [System.Runtime.Serialization.EnumMember(Value = @"Pis")] Pis = 2, [System.Runtime.Serialization.EnumMember(Value = @"Cofins")] Cofins = 3, [System.Runtime.Serialization.EnumMember(Value = @"Ipi")] Ipi = 4, [System.Runtime.Serialization.EnumMember(Value = @"IcmsSt")] IcmsSt = 5, [System.Runtime.Serialization.EnumMember(Value = @"None")] None = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous776 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode desc")] FeeCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 6, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate desc")] FeeRate_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 8, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil desc")] ValidUntil_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"FeeType desc")] FeeType_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 14, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived desc")] VatReceived_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 16, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed desc")] VatDisbursed_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 18, [System.Runtime.Serialization.EnumMember(Value = @"Deductible desc")] Deductible_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 20, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint desc")] TaxAmountAtInvPrint_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 22, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit desc")] TaxAmtLimit_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 24, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory desc")] TaxReportingCategory_desc = 25, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous777 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"FeeCode")] FeeCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"FeeRate")] FeeRate = 3, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidUntil")] ValidUntil = 5, [System.Runtime.Serialization.EnumMember(Value = @"FeeType")] FeeType = 6, [System.Runtime.Serialization.EnumMember(Value = @"VatReceived")] VatReceived = 7, [System.Runtime.Serialization.EnumMember(Value = @"VatDisbursed")] VatDisbursed = 8, [System.Runtime.Serialization.EnumMember(Value = @"Deductible")] Deductible = 9, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmountAtInvPrint")] TaxAmountAtInvPrint = 10, [System.Runtime.Serialization.EnumMember(Value = @"TaxAmtLimit")] TaxAmtLimit = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxReportingCategory")] TaxReportingCategory = 12, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous778 { [System.Runtime.Serialization.EnumMember(Value = @"Objid")] Objid = 0, [System.Runtime.Serialization.EnumMember(Value = @"Objid desc")] Objid_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 2, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 4, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId desc")] TaxBookId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 6, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"NodeId")] NodeId = 8, [System.Runtime.Serialization.EnumMember(Value = @"NodeId desc")] NodeId_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription")] NodeDescription = 10, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription desc")] NodeDescription_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId")] TaxStructId = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId desc")] TaxStructId_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr")] StructDescr = 14, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr desc")] StructDescr_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId")] TaxSeriesId = 16, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId desc")] TaxSeriesId_desc = 17, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous779 { [System.Runtime.Serialization.EnumMember(Value = @"Objid")] Objid = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 1, [System.Runtime.Serialization.EnumMember(Value = @"TaxBookId")] TaxBookId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 3, [System.Runtime.Serialization.EnumMember(Value = @"NodeId")] NodeId = 4, [System.Runtime.Serialization.EnumMember(Value = @"NodeDescription")] NodeDescription = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxStructId")] TaxStructId = 6, [System.Runtime.Serialization.EnumMember(Value = @"StructDescr")] StructDescr = 7, [System.Runtime.Serialization.EnumMember(Value = @"TaxSeriesId")] TaxSeriesId = 8, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous780 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 0, [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType desc")] TaxIdType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode")] ReportCode = 2, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode desc")] ReportCode_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat")] LayoutFormat = 8, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat desc")] LayoutFormat_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous781 { [System.Runtime.Serialization.EnumMember(Value = @"TaxIdType")] TaxIdType = 0, [System.Runtime.Serialization.EnumMember(Value = @"ReportCode")] ReportCode = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 3, [System.Runtime.Serialization.EnumMember(Value = @"LayoutFormat")] LayoutFormat = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CountryCode2 { [System.Runtime.Serialization.EnumMember(Value = @"*")] _ = 0, [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 1, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 2, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 3, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 4, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous782 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault desc")] TypeDefault_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode desc")] RefCurrencyCode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 10, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory desc")] RateTypeCategory_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous783 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 3, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous784 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 2, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType desc")] CurrencyType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 6, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault desc")] TypeDefault_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 8, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode desc")] RefCurrencyCode_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 10, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory desc")] RateTypeCategory_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous785 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyType")] CurrencyType = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"TypeDefault")] TypeDefault = 3, [System.Runtime.Serialization.EnumMember(Value = @"RefCurrencyCode")] RefCurrencyCode = 4, [System.Runtime.Serialization.EnumMember(Value = @"RateTypeCategory")] RateTypeCategory = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous786 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 6, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 8, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 14, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 18, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MethodId desc")] MethodId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 22, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 28, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId desc")] CompanyId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId desc")] CustomsId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 34, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 36, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId desc")] ManufacturerId_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 38, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId desc")] OwnerId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId desc")] TaxOfficeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 42, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal desc")] PartyTypeDbVal_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous787 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 9, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 16, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 17, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 18, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous788 { [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous789 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 4, [System.Runtime.Serialization.EnumMember(Value = @"CommId desc")] CommId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 6, [System.Runtime.Serialization.EnumMember(Value = @"Value desc")] Value_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 8, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 10, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom desc")] ValidFrom_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 12, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo desc")] ValidTo_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 14, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault desc")] MethodDefault_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 16, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault desc")] AddressDefault_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 18, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 20, [System.Runtime.Serialization.EnumMember(Value = @"MethodId desc")] MethodId_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 22, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 24, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 26, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId desc")] SupplierId_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 28, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId desc")] CompanyId_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 30, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId desc")] CustomsId_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 34, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId desc")] ForwarderId_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 36, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId desc")] ManufacturerId_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 38, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId desc")] OwnerId_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 40, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId desc")] TaxOfficeId_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 42, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal desc")] PartyTypeDbVal_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous790 { [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"CommId")] CommId = 2, [System.Runtime.Serialization.EnumMember(Value = @"Value")] Value = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"ValidFrom")] ValidFrom = 5, [System.Runtime.Serialization.EnumMember(Value = @"ValidTo")] ValidTo = 6, [System.Runtime.Serialization.EnumMember(Value = @"MethodDefault")] MethodDefault = 7, [System.Runtime.Serialization.EnumMember(Value = @"AddressDefault")] AddressDefault = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 9, [System.Runtime.Serialization.EnumMember(Value = @"MethodId")] MethodId = 10, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 11, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 12, [System.Runtime.Serialization.EnumMember(Value = @"SupplierId")] SupplierId = 13, [System.Runtime.Serialization.EnumMember(Value = @"CompanyId")] CompanyId = 14, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomsId")] CustomsId = 16, [System.Runtime.Serialization.EnumMember(Value = @"ForwarderId")] ForwarderId = 17, [System.Runtime.Serialization.EnumMember(Value = @"ManufacturerId")] ManufacturerId = 18, [System.Runtime.Serialization.EnumMember(Value = @"OwnerId")] OwnerId = 19, [System.Runtime.Serialization.EnumMember(Value = @"TaxOfficeId")] TaxOfficeId = 20, [System.Runtime.Serialization.EnumMember(Value = @"PartyTypeDbVal")] PartyTypeDbVal = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous791 { [System.Runtime.Serialization.EnumMember(Value = @"AddressIdRef")] AddressIdRef = 0, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous792 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 2, [System.Runtime.Serialization.EnumMember(Value = @"Identity desc")] Identity_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit desc")] CreditLimit_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 8, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock desc")] CreditBlock_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 10, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate desc")] NextReviewDate_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 12, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist desc")] CorpCreditRelationExist_desc = 13, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous793 { [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 0, [System.Runtime.Serialization.EnumMember(Value = @"Identity")] Identity = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"CreditLimit")] CreditLimit = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreditBlock")] CreditBlock = 4, [System.Runtime.Serialization.EnumMember(Value = @"NextReviewDate")] NextReviewDate = 5, [System.Runtime.Serialization.EnumMember(Value = @"CorpCreditRelationExist")] CorpCreditRelationExist = 6, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous794 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute desc")] KeyAttribute_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 4, [System.Runtime.Serialization.EnumMember(Value = @"AddressId desc")] AddressId_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 6, [System.Runtime.Serialization.EnumMember(Value = @"PersonId desc")] PersonId_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 8, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 10, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary desc")] CustomerPrimary_desc = 11, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous795 { [System.Runtime.Serialization.EnumMember(Value = @"KeyAttribute")] KeyAttribute = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 1, [System.Runtime.Serialization.EnumMember(Value = @"AddressId")] AddressId = 2, [System.Runtime.Serialization.EnumMember(Value = @"PersonId")] PersonId = 3, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 4, [System.Runtime.Serialization.EnumMember(Value = @"CustomerPrimary")] CustomerPrimary = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous796 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"Contract desc")] Contract_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType desc")] ChargeType_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc")] ChargeTypeDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc desc")] ChargeTypeDesc_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 6, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount desc")] ChargeAmount_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 8, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax desc")] ChargeAmountInclTax_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 10, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost desc")] ChargeCost_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 12, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode desc")] TaxCode_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId")] TaxClassId = 14, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId desc")] TaxClassId_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas")] SalesUnitMeas = 16, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas desc")] SalesUnitMeas_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 18, [System.Runtime.Serialization.EnumMember(Value = @"Taxable desc")] Taxable_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 20, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup desc")] ChargeGroup_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 22, [System.Runtime.Serialization.EnumMember(Value = @"Company desc")] Company_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 24, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType desc")] PrintChargeType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 26, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge desc")] PrintCollectCharge_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 28, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt desc")] IntrastatExempt_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge")] UnitCharge = 30, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge desc")] UnitCharge_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 32, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory desc")] SalesChgTypeCategory_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 34, [System.Runtime.Serialization.EnumMember(Value = @"Charge desc")] Charge_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 36, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent desc")] ChargeCostPercent_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 38, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType desc")] DeliveryType_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 40, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax desc")] UsePriceInclTax_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode")] StatisticalCode = 42, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode desc")] StatisticalCode_desc = 43, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous797 { [System.Runtime.Serialization.EnumMember(Value = @"Contract")] Contract = 0, [System.Runtime.Serialization.EnumMember(Value = @"ChargeType")] ChargeType = 1, [System.Runtime.Serialization.EnumMember(Value = @"ChargeTypeDesc")] ChargeTypeDesc = 2, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmount")] ChargeAmount = 3, [System.Runtime.Serialization.EnumMember(Value = @"ChargeAmountInclTax")] ChargeAmountInclTax = 4, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCost")] ChargeCost = 5, [System.Runtime.Serialization.EnumMember(Value = @"TaxCode")] TaxCode = 6, [System.Runtime.Serialization.EnumMember(Value = @"TaxClassId")] TaxClassId = 7, [System.Runtime.Serialization.EnumMember(Value = @"SalesUnitMeas")] SalesUnitMeas = 8, [System.Runtime.Serialization.EnumMember(Value = @"Taxable")] Taxable = 9, [System.Runtime.Serialization.EnumMember(Value = @"ChargeGroup")] ChargeGroup = 10, [System.Runtime.Serialization.EnumMember(Value = @"Company")] Company = 11, [System.Runtime.Serialization.EnumMember(Value = @"PrintChargeType")] PrintChargeType = 12, [System.Runtime.Serialization.EnumMember(Value = @"PrintCollectCharge")] PrintCollectCharge = 13, [System.Runtime.Serialization.EnumMember(Value = @"IntrastatExempt")] IntrastatExempt = 14, [System.Runtime.Serialization.EnumMember(Value = @"UnitCharge")] UnitCharge = 15, [System.Runtime.Serialization.EnumMember(Value = @"SalesChgTypeCategory")] SalesChgTypeCategory = 16, [System.Runtime.Serialization.EnumMember(Value = @"Charge")] Charge = 17, [System.Runtime.Serialization.EnumMember(Value = @"ChargeCostPercent")] ChargeCostPercent = 18, [System.Runtime.Serialization.EnumMember(Value = @"DeliveryType")] DeliveryType = 19, [System.Runtime.Serialization.EnumMember(Value = @"UsePriceInclTax")] UsePriceInclTax = 20, [System.Runtime.Serialization.EnumMember(Value = @"StatisticalCode")] StatisticalCode = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous798 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId desc")] AssortmentId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription desc")] AssortmentDescription_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 4, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard desc")] ClassificationStandard_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 6, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription desc")] ClassificationDescription_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 8, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment desc")] ProcCategoryAssortment_desc = 9, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous799 { [System.Runtime.Serialization.EnumMember(Value = @"AssortmentId")] AssortmentId = 0, [System.Runtime.Serialization.EnumMember(Value = @"AssortmentDescription")] AssortmentDescription = 1, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationStandard")] ClassificationStandard = 2, [System.Runtime.Serialization.EnumMember(Value = @"ClassificationDescription")] ClassificationDescription = 3, [System.Runtime.Serialization.EnumMember(Value = @"ProcCategoryAssortment")] ProcCategoryAssortment = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous800 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo desc")] CustomerNo_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustRef desc")] CustRef_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 4, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort desc")] InvoiceSort_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 6, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval desc")] EdiAutoOrderApproval_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 8, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval desc")] EdiAutoChangeApproval_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 10, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode desc")] EdiAuthorizeCode_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 12, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite desc")] EdiSite_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 14, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel desc")] CustPartAcqValLevel_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 16, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText desc")] ReplicateDocText_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 18, [System.Runtime.Serialization.EnumMember(Value = @"MatchType desc")] MatchType_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 20, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery desc")] HandlUnitAtCoDelivery_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 22, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption desc")] RecAdvMatchingOption_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 24, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType desc")] ReceivingAdviceType_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 26, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption desc")] SelfBillingMatchOption_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 28, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder desc")] ReleaseInternalOrder_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 30, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId desc")] CreditControlGroupId_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 32, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption desc")] BackorderOption_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 34, [System.Runtime.Serialization.EnumMember(Value = @"Priority desc")] Priority_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 36, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines desc")] PrintDeliveredLines_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 38, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp desc")] CustGrp_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 40, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription desc")] CustomerGroupDescription_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay desc")] CustomerNoPay_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 44, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName desc")] CustomerNoPayName_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 46, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId desc")] CustPriceGroupId_desc = 47, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 48, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription desc")] CustPriceGroupDescription_desc = 49, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 50, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode desc")] MarketCode_desc = 51, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 52, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc desc")] MarketCodeDesc_desc = 53, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 54, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType desc")] DiscountType_desc = 55, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 56, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription desc")] DiscountTypeDescription_desc = 57, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 58, [System.Runtime.Serialization.EnumMember(Value = @"Discount desc")] Discount_desc = 59, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 60, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc desc")] CreditCtrlGroupDesc_desc = 61, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 62, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode desc")] CurrencyCode_desc = 63, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 64, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount desc")] MinSalesAmount_desc = 65, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 66, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer desc")] TemplateCustomer_desc = 67, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 68, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer desc")] QuickRegisteredCustomer_desc = 69, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 70, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc desc")] TemplateCustomerDesc_desc = 71, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 72, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy desc")] Hierarchy_desc = 73, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 74, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel desc")] HierarchyLevel_desc = 75, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 76, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay desc")] AdvInvFullPay_desc = 77, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 78, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg desc")] ReceivePackSizeChg_desc = 79, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 80, [System.Runtime.Serialization.EnumMember(Value = @"CrStop desc")] CrStop_desc = 81, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 82, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode desc")] SalesmanCode_desc = 83, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 84, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver desc")] CommissionReceiver_desc = 85, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 86, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer desc")] CustPartOwnerTransfer_desc = 87, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 88, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod desc")] CyclePeriod_desc = 89, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 90, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate desc")] LastIvcDate_desc = 91, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 92, [System.Runtime.Serialization.EnumMember(Value = @"Category desc")] Category_desc = 93, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 94, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite desc")] AcquisitionSite_desc = 95, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 96, [System.Runtime.Serialization.EnumMember(Value = @"OrderId desc")] OrderId_desc = 97, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 98, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId desc")] ForwardAgentId_desc = 99, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 100, [System.Runtime.Serialization.EnumMember(Value = @"DateDel desc")] DateDel_desc = 101, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 102, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries desc")] ConfirmDeliveries_desc = 103, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 104, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf desc")] CheckSalesGrpDelivConf_desc = 105, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 106, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId desc")] TemplateId_desc = 107, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 108, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText desc")] DocumentText_desc = 109, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 110, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag desc")] OrderConfFlag_desc = 111, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 112, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag desc")] PackListFlag_desc = 113, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 114, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines desc")] SummarizedSourceLines_desc = 115, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 116, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges desc")] SummarizedFreightCharges_desc = 117, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 118, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax desc")] PrintAmountsInclTax_desc = 119, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 120, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode desc")] PrintControlCode_desc = 121, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 122, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies desc")] NoDelnoteCopies_desc = 123, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 124, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 125, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 126, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf desc")] EmailOrderConf_desc = 127, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 128, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice desc")] EmailInvoice_desc = 129, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 130, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser desc")] EdiAutoApprovalUser_desc = 131, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 132, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage desc")] SendChangeMessage_desc = 133, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 134, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend desc")] AutoDespatchAdvSend_desc = 135, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 136, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification desc")] MulTierDelNotification_desc = 137, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 138, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching desc")] RecAdvAutoMatching_desc = 139, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 140, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser desc")] RecAdvAutoApprovalUser_desc = 141, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 142, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff desc")] RecAdvAutoMatchDiff_desc = 143, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 144, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser desc")] SbiAutoApprovalUser_desc = 145, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 146, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi desc")] UpdatePriceFromSbi_desc = 147, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 148, [System.Runtime.Serialization.EnumMember(Value = @"NoteText desc")] NoteText_desc = 149, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 150, [System.Runtime.Serialization.EnumMember(Value = @"NoteId desc")] NoteId_desc = 151, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 152, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts desc")] AllowAutoSubOfParts_desc = 153, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 154, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq desc")] B2bAutoCreateCoFromSq_desc = 155, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 156, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled desc")] PayledInstaled_desc = 157, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 158, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled desc")] PayledInstalled_desc = 159, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 160, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 161, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 162, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax desc")] PrintWithholdingTax_desc = 163, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous801 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerNo")] CustomerNo = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustRef")] CustRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"InvoiceSort")] InvoiceSort = 2, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoOrderApproval")] EdiAutoOrderApproval = 3, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoChangeApproval")] EdiAutoChangeApproval = 4, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCode")] EdiAuthorizeCode = 5, [System.Runtime.Serialization.EnumMember(Value = @"EdiSite")] EdiSite = 6, [System.Runtime.Serialization.EnumMember(Value = @"CustPartAcqValLevel")] CustPartAcqValLevel = 7, [System.Runtime.Serialization.EnumMember(Value = @"ReplicateDocText")] ReplicateDocText = 8, [System.Runtime.Serialization.EnumMember(Value = @"MatchType")] MatchType = 9, [System.Runtime.Serialization.EnumMember(Value = @"HandlUnitAtCoDelivery")] HandlUnitAtCoDelivery = 10, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvMatchingOption")] RecAdvMatchingOption = 11, [System.Runtime.Serialization.EnumMember(Value = @"ReceivingAdviceType")] ReceivingAdviceType = 12, [System.Runtime.Serialization.EnumMember(Value = @"SelfBillingMatchOption")] SelfBillingMatchOption = 13, [System.Runtime.Serialization.EnumMember(Value = @"ReleaseInternalOrder")] ReleaseInternalOrder = 14, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupId")] CreditControlGroupId = 15, [System.Runtime.Serialization.EnumMember(Value = @"BackorderOption")] BackorderOption = 16, [System.Runtime.Serialization.EnumMember(Value = @"Priority")] Priority = 17, [System.Runtime.Serialization.EnumMember(Value = @"PrintDeliveredLines")] PrintDeliveredLines = 18, [System.Runtime.Serialization.EnumMember(Value = @"CustGrp")] CustGrp = 19, [System.Runtime.Serialization.EnumMember(Value = @"CustomerGroupDescription")] CustomerGroupDescription = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPay")] CustomerNoPay = 21, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayName")] CustomerNoPayName = 22, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupId")] CustPriceGroupId = 23, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupDescription")] CustPriceGroupDescription = 24, [System.Runtime.Serialization.EnumMember(Value = @"MarketCode")] MarketCode = 25, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeDesc")] MarketCodeDesc = 26, [System.Runtime.Serialization.EnumMember(Value = @"DiscountType")] DiscountType = 27, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeDescription")] DiscountTypeDescription = 28, [System.Runtime.Serialization.EnumMember(Value = @"Discount")] Discount = 29, [System.Runtime.Serialization.EnumMember(Value = @"CreditCtrlGroupDesc")] CreditCtrlGroupDesc = 30, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCode")] CurrencyCode = 31, [System.Runtime.Serialization.EnumMember(Value = @"MinSalesAmount")] MinSalesAmount = 32, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomer")] TemplateCustomer = 33, [System.Runtime.Serialization.EnumMember(Value = @"QuickRegisteredCustomer")] QuickRegisteredCustomer = 34, [System.Runtime.Serialization.EnumMember(Value = @"TemplateCustomerDesc")] TemplateCustomerDesc = 35, [System.Runtime.Serialization.EnumMember(Value = @"Hierarchy")] Hierarchy = 36, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevel")] HierarchyLevel = 37, [System.Runtime.Serialization.EnumMember(Value = @"AdvInvFullPay")] AdvInvFullPay = 38, [System.Runtime.Serialization.EnumMember(Value = @"ReceivePackSizeChg")] ReceivePackSizeChg = 39, [System.Runtime.Serialization.EnumMember(Value = @"CrStop")] CrStop = 40, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCode")] SalesmanCode = 41, [System.Runtime.Serialization.EnumMember(Value = @"CommissionReceiver")] CommissionReceiver = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustPartOwnerTransfer")] CustPartOwnerTransfer = 43, [System.Runtime.Serialization.EnumMember(Value = @"CyclePeriod")] CyclePeriod = 44, [System.Runtime.Serialization.EnumMember(Value = @"LastIvcDate")] LastIvcDate = 45, [System.Runtime.Serialization.EnumMember(Value = @"Category")] Category = 46, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSite")] AcquisitionSite = 47, [System.Runtime.Serialization.EnumMember(Value = @"OrderId")] OrderId = 48, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentId")] ForwardAgentId = 49, [System.Runtime.Serialization.EnumMember(Value = @"DateDel")] DateDel = 50, [System.Runtime.Serialization.EnumMember(Value = @"ConfirmDeliveries")] ConfirmDeliveries = 51, [System.Runtime.Serialization.EnumMember(Value = @"CheckSalesGrpDelivConf")] CheckSalesGrpDelivConf = 52, [System.Runtime.Serialization.EnumMember(Value = @"TemplateId")] TemplateId = 53, [System.Runtime.Serialization.EnumMember(Value = @"DocumentText")] DocumentText = 54, [System.Runtime.Serialization.EnumMember(Value = @"OrderConfFlag")] OrderConfFlag = 55, [System.Runtime.Serialization.EnumMember(Value = @"PackListFlag")] PackListFlag = 56, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedSourceLines")] SummarizedSourceLines = 57, [System.Runtime.Serialization.EnumMember(Value = @"SummarizedFreightCharges")] SummarizedFreightCharges = 58, [System.Runtime.Serialization.EnumMember(Value = @"PrintAmountsInclTax")] PrintAmountsInclTax = 59, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCode")] PrintControlCode = 60, [System.Runtime.Serialization.EnumMember(Value = @"NoDelnoteCopies")] NoDelnoteCopies = 61, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 62, [System.Runtime.Serialization.EnumMember(Value = @"EmailOrderConf")] EmailOrderConf = 63, [System.Runtime.Serialization.EnumMember(Value = @"EmailInvoice")] EmailInvoice = 64, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUser")] EdiAutoApprovalUser = 65, [System.Runtime.Serialization.EnumMember(Value = @"SendChangeMessage")] SendChangeMessage = 66, [System.Runtime.Serialization.EnumMember(Value = @"AutoDespatchAdvSend")] AutoDespatchAdvSend = 67, [System.Runtime.Serialization.EnumMember(Value = @"MulTierDelNotification")] MulTierDelNotification = 68, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatching")] RecAdvAutoMatching = 69, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUser")] RecAdvAutoApprovalUser = 70, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoMatchDiff")] RecAdvAutoMatchDiff = 71, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUser")] SbiAutoApprovalUser = 72, [System.Runtime.Serialization.EnumMember(Value = @"UpdatePriceFromSbi")] UpdatePriceFromSbi = 73, [System.Runtime.Serialization.EnumMember(Value = @"NoteText")] NoteText = 74, [System.Runtime.Serialization.EnumMember(Value = @"NoteId")] NoteId = 75, [System.Runtime.Serialization.EnumMember(Value = @"AllowAutoSubOfParts")] AllowAutoSubOfParts = 76, [System.Runtime.Serialization.EnumMember(Value = @"B2bAutoCreateCoFromSq")] B2bAutoCreateCoFromSq = 77, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstaled")] PayledInstaled = 78, [System.Runtime.Serialization.EnumMember(Value = @"PayledInstalled")] PayledInstalled = 79, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 80, [System.Runtime.Serialization.EnumMember(Value = @"PrintWithholdingTax")] PrintWithholdingTax = 81, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous802 { [System.Runtime.Serialization.EnumMember(Value = @"PersonInfoRef")] PersonInfoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustGrpRef")] CustGrpRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerNoPayRef")] CustomerNoPayRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"CustPriceGroupIdRef")] CustPriceGroupIdRef = 3, [System.Runtime.Serialization.EnumMember(Value = @"CustRefRef")] CustRefRef = 4, [System.Runtime.Serialization.EnumMember(Value = @"MarketCodeRef")] MarketCodeRef = 5, [System.Runtime.Serialization.EnumMember(Value = @"DiscountTypeRef")] DiscountTypeRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"CreditControlGroupIdRef")] CreditControlGroupIdRef = 7, [System.Runtime.Serialization.EnumMember(Value = @"CurrencyCodeRef")] CurrencyCodeRef = 8, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyRef")] HierarchyRef = 9, [System.Runtime.Serialization.EnumMember(Value = @"HierarchyLevelRef")] HierarchyLevelRef = 10, [System.Runtime.Serialization.EnumMember(Value = @"SalesmanCodeRef")] SalesmanCodeRef = 11, [System.Runtime.Serialization.EnumMember(Value = @"AcquisitionSiteRef")] AcquisitionSiteRef = 12, [System.Runtime.Serialization.EnumMember(Value = @"OrderIdRef")] OrderIdRef = 13, [System.Runtime.Serialization.EnumMember(Value = @"ForwardAgentIdRef")] ForwardAgentIdRef = 14, [System.Runtime.Serialization.EnumMember(Value = @"TemplateIdRef")] TemplateIdRef = 15, [System.Runtime.Serialization.EnumMember(Value = @"PrintControlCodeRef")] PrintControlCodeRef = 16, [System.Runtime.Serialization.EnumMember(Value = @"EdiAutoApprovalUserRef")] EdiAutoApprovalUserRef = 17, [System.Runtime.Serialization.EnumMember(Value = @"EdiAuthorizeCodeRef")] EdiAuthorizeCodeRef = 18, [System.Runtime.Serialization.EnumMember(Value = @"EdiSiteRef")] EdiSiteRef = 19, [System.Runtime.Serialization.EnumMember(Value = @"RecAdvAutoApprovalUserRef")] RecAdvAutoApprovalUserRef = 20, [System.Runtime.Serialization.EnumMember(Value = @"SbiAutoApprovalUserRef")] SbiAutoApprovalUserRef = 21, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous803 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"CustomerId desc")] CustomerId_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 2, [System.Runtime.Serialization.EnumMember(Value = @"Name desc")] Name_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 4, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate desc")] CreationDate_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 6, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo desc")] AssociationNo_desc = 7, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 8, [System.Runtime.Serialization.EnumMember(Value = @"Party desc")] Party_desc = 9, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 10, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain desc")] DefaultDomain_desc = 11, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 12, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage desc")] DefaultLanguage_desc = 13, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 14, [System.Runtime.Serialization.EnumMember(Value = @"Country desc")] Country_desc = 15, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 16, [System.Runtime.Serialization.EnumMember(Value = @"PartyType desc")] PartyType_desc = 17, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 18, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 19, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 20, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference desc")] IdentifierReference_desc = 21, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 22, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation desc")] IdentifierRefValidation_desc = 23, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 24, [System.Runtime.Serialization.EnumMember(Value = @"PictureId desc")] PictureId_desc = 25, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 26, [System.Runtime.Serialization.EnumMember(Value = @"OneTime desc")] OneTime_desc = 27, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 28, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory desc")] CustomerCategory_desc = 29, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 30, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer desc")] B2bCustomer_desc = 31, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 32, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType desc")] CustomerTaxUsageType_desc = 33, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 34, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 35, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 36, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose desc")] ValidDataProcessingPurpose_desc = 37, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 38, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn desc")] VisibleDataSubConstColumn_desc = 39, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 40, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 41, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 42, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo desc")] CustomerLogo_desc = 43, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 44, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 45, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 46, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc desc")] BusinessClassificationDesc_desc = 47, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous804 { [System.Runtime.Serialization.EnumMember(Value = @"CustomerId")] CustomerId = 0, [System.Runtime.Serialization.EnumMember(Value = @"Name")] Name = 1, [System.Runtime.Serialization.EnumMember(Value = @"CreationDate")] CreationDate = 2, [System.Runtime.Serialization.EnumMember(Value = @"AssociationNo")] AssociationNo = 3, [System.Runtime.Serialization.EnumMember(Value = @"Party")] Party = 4, [System.Runtime.Serialization.EnumMember(Value = @"DefaultDomain")] DefaultDomain = 5, [System.Runtime.Serialization.EnumMember(Value = @"DefaultLanguage")] DefaultLanguage = 6, [System.Runtime.Serialization.EnumMember(Value = @"Country")] Country = 7, [System.Runtime.Serialization.EnumMember(Value = @"PartyType")] PartyType = 8, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 9, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierReference")] IdentifierReference = 10, [System.Runtime.Serialization.EnumMember(Value = @"IdentifierRefValidation")] IdentifierRefValidation = 11, [System.Runtime.Serialization.EnumMember(Value = @"PictureId")] PictureId = 12, [System.Runtime.Serialization.EnumMember(Value = @"OneTime")] OneTime = 13, [System.Runtime.Serialization.EnumMember(Value = @"CustomerCategory")] CustomerCategory = 14, [System.Runtime.Serialization.EnumMember(Value = @"B2bCustomer")] B2bCustomer = 15, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageType")] CustomerTaxUsageType = 16, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 17, [System.Runtime.Serialization.EnumMember(Value = @"ValidDataProcessingPurpose")] ValidDataProcessingPurpose = 18, [System.Runtime.Serialization.EnumMember(Value = @"VisibleDataSubConstColumn")] VisibleDataSubConstColumn = 19, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 20, [System.Runtime.Serialization.EnumMember(Value = @"CustomerLogo")] CustomerLogo = 21, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 22, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationDesc")] BusinessClassificationDesc = 23, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous805 { [System.Runtime.Serialization.EnumMember(Value = @"AssociationNoRef")] AssociationNoRef = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormRef")] CorporateFormRef = 1, [System.Runtime.Serialization.EnumMember(Value = @"CustomerTaxUsageTypeRef")] CustomerTaxUsageTypeRef = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassificationRef")] BusinessClassificationRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum CountryCode3 { [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 0, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 1, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 2, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 3, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous806 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 2, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm desc")] CorporateForm_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 4, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc desc")] CorporateFormDesc_desc = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous807 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CorporateForm")] CorporateForm = 1, [System.Runtime.Serialization.EnumMember(Value = @"CorporateFormDesc")] CorporateFormDesc = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Country { [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 0, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 1, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 2, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 3, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous808 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"CountryCode desc")] CountryCode_desc = 1, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 2, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification desc")] BusinessClassification_desc = 3, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 4, [System.Runtime.Serialization.EnumMember(Value = @"Description desc")] Description_desc = 5, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 6, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef desc")] ExternalTaxSystemRef_desc = 7, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Anonymous809 { [System.Runtime.Serialization.EnumMember(Value = @"CountryCode")] CountryCode = 0, [System.Runtime.Serialization.EnumMember(Value = @"BusinessClassification")] BusinessClassification = 1, [System.Runtime.Serialization.EnumMember(Value = @"Description")] Description = 2, [System.Runtime.Serialization.EnumMember(Value = @"ExternalTaxSystemRef")] ExternalTaxSystemRef = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public enum Country2 { [System.Runtime.Serialization.EnumMember(Value = @"CA")] CA = 0, [System.Runtime.Serialization.EnumMember(Value = @"CN")] CN = 1, [System.Runtime.Serialization.EnumMember(Value = @"DE")] DE = 2, [System.Runtime.Serialization.EnumMember(Value = @"IT")] IT = 3, [System.Runtime.Serialization.EnumMember(Value = @"US")] US = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response2 { [System.Text.Json.Serialization.JsonPropertyName("error")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public Error Error { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response3 { [System.Text.Json.Serialization.JsonPropertyName("error")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public Error2 Error { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response4 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response5 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response6 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response7 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response8 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response9 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response10 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response11 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response12 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response13 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response14 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response15 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response16 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response17 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response18 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response19 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response20 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response21 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response22 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response23 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response24 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response25 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response26 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response27 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response28 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response29 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response30 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response31 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response32 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response33 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response34 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response35 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response36 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response37 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response38 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response39 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response40 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response41 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response42 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response43 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response44 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response45 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response46 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response47 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response48 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response49 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response50 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response51 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response52 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response53 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response54 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response55 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response56 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response57 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response58 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response59 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response60 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response61 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response62 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response63 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response64 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response65 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response66 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response67 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response68 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response69 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response70 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response71 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response72 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response73 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response74 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response75 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response76 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response77 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response78 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response79 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response80 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response81 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response82 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response83 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response84 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response85 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response86 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response87 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response88 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response89 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response90 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response91 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response92 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response93 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response94 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response95 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response96 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response97 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response98 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response99 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response100 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response101 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response102 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response103 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response104 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response105 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response106 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response107 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response108 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response109 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response110 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response111 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response112 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response113 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response114 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response115 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response116 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response117 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response118 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response119 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response120 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response121 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response122 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response123 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response124 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response125 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response126 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response127 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response128 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response129 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response130 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response131 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response132 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response133 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response134 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response135 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response136 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response137 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response138 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response139 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response140 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response141 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response142 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response143 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response144 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response145 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response146 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response147 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response148 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response149 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response150 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response151 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response152 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response153 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response154 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response155 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response156 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response157 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response158 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response159 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response160 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response161 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response162 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response163 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response164 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response165 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response166 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response167 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response168 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Response169 { [System.Text.Json.Serialization.JsonPropertyName("value")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Value { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Error { [System.Text.Json.Serialization.JsonPropertyName("code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("message")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Message { get; set; } [System.Text.Json.Serialization.JsonPropertyName("details")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection
Details { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Error2 { [System.Text.Json.Serialization.JsonPropertyName("code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("message")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Message { get; set; } [System.Text.Json.Serialization.JsonPropertyName("details")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public System.Collections.Generic.ICollection Details { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Details { [System.Text.Json.Serialization.JsonPropertyName("code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("message")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Message { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class Details2 { [System.Text.Json.Serialization.JsonPropertyName("code")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Code { get; set; } [System.Text.Json.Serialization.JsonPropertyName("message")] [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] public string Message { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ApiException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.16.0.0 (NJsonSchema v10.7.1.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ApiException : ApiException { public TResult Result { get; private set; } public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } } #pragma warning restore 1591 #pragma warning restore 1573 #pragma warning restore 472 #pragma warning restore 114 #pragma warning restore 108 #pragma warning restore 3016 #pragma warning restore 8603